bitque/migrations/2020-03-25-150010_create_tokens/up.sql

9 lines
275 B
SQL

CREATE TABLE tokens (
id serial primary key not null,
user_id integer not null references users (id),
access_token uuid not null,
refresh_token uuid not null,
created_at timestamp not null default now(),
updated_at timestamp not null default now()
);