fix: database schema

This commit is contained in:
2025-11-12 13:00:51 -07:00
parent 8b351524b8
commit dd0ab39985

View File

@@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS ordr_user (
id SERIAL NOT NULL PRIMARY KEY, id SERIAL NOT NULL PRIMARY KEY,
sub_id TEXT UNIQUE NOT NULL, sub_id TEXT UNIQUE NOT NULL,
user_name TEXT NOT NULL, user_name TEXT NOT NULL,
position INTEGER NOT NULL DEFAULT 0 REFERENCES ordr_position ON DELETE SET NULL, job_position INTEGER NOT NULL DEFAULT 0 REFERENCES ordr_position ON DELETE SET NULL,
active BOOLEAN NOT NULL DEFAULT TRUE, active BOOLEAN NOT NULL DEFAULT TRUE,
is_admin BOOLEAN NOT NULL DEFAULT FALSE is_admin BOOLEAN NOT NULL DEFAULT FALSE
); );