This commit is contained in:
lbenedar
2026-03-20 17:46:24 +03:00
parent e47eda4cda
commit efb58d7c15
5 changed files with 83 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
CREATE TABLE IF NOT EXISTS tokens {
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
};
);