CREATE TABLE refresh_token (
    token UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    user_id UUID NOT NULL,
    FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE,
    created_at TIMESTAMP NOT NULL DEFAULT now(),
    expired_at TIMESTAMP NOT NULL DEFAULT now() + INTERVAL '1 day'
);
