taskcafe/migrations/0001_add-refresh-token-table.up.sql

9 lines
227 B
MySQL
Raw Permalink Normal View History

CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
2020-04-10 04:40:22 +02:00
CREATE TABLE refresh_token (
token_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
user_id uuid NOT NULL,
created_at timestamptz NOT NULL,
expires_at timestamptz NOT NULL
);