Files
vind/backend/migrations/20220604192644_auth_token.sql

9 lines
292 B
SQL

-- Add migration script here
CREATE TABLE refresh_token
(
id uuid not null,
user_id uuid not null,
time_created timestamp not null,
CONSTRAINT fk_user_id FOREIGN KEY (user_id) REFERENCES account (id) ON DELETE CASCADE,
PRIMARY KEY (id, user_id)
);