This commit is contained in:
JMARyA 2024-12-29 20:03:04 +01:00
parent 04852f2fbc
commit 3837302161
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 7 additions and 1 deletions
src/auth

View file

@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS user_session (
"user" varchar(255) NOT NULL,
"created" timestamptz NOT NULL DEFAULT NOW(),
"csrf" UUID NOT NULL DEFAULT gen_random_uuid(),
"name" varchar(255)
"name" varchar(255),
kind session_kind NOT NULL DEFAULT 'user',
FOREIGN KEY("user") REFERENCES users(username)
);