init project, impl authorization

This commit is contained in:
2022-06-06 14:17:58 +05:00
commit ec73d6584f
26 changed files with 2680 additions and 0 deletions

View File

@ -0,0 +1,9 @@
-- 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)
);