2020-07-05 01:02:57 +02:00
|
|
|
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
|
|
|
|
);
|