This commit is contained in:
lbenedar
2026-03-20 15:13:23 +03:00
parent 16f2caee66
commit 0eaad4ed13
4 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1 @@
DROP TABLE IF EXISTS tokens;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS tokens {
hash bytea PRIMARY KEY,
user_id bigint NOT NULL REFERENCES users ON DELETE CASCADE,
expiry timestamp(0) with time zone NOT NULL,
scope text NOT NULL
};