feat: admin routing part 3

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2025-01-27 17:17:13 +03:00
parent bf2b0a439c
commit 8fb39f27ca
14 changed files with 305 additions and 139 deletions

View file

@ -1,7 +1,7 @@
-- Add up migration script here
CREATE TABLE IF NOT EXISTS "login" (
user_id BIGSERIAL NOT NULL REFERENCES "user" (user_id),
token VARCHAR(1024) NOT NULL,
authorization_token VARCHAR(1024) NOT NULL,
token_creation_time TIMESTAMPTZ NOT NULL DEFAULT NOW (),
PRIMARY KEY (user_id, token)
PRIMARY KEY (user_id, authorization_token)
);