fix: wrong role 'guest' instead of 'user' defaulting in schema

This commit is contained in:
2025-07-17 04:34:53 +03:00
parent 249bbe4a98
commit 837fa2cfe9

View File

@@ -24,7 +24,7 @@ CREATE TABLE IF NOT EXISTS "users" (
username VARCHAR(20) UNIQUE NOT NULL, username VARCHAR(20) UNIQUE NOT NULL,
verified BOOLEAN DEFAULT FALSE, verified BOOLEAN DEFAULT FALSE,
registration_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, registration_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
role INTEGER NOT NULL DEFAULT 0, role INTEGER NOT NULL DEFAULT 1,
deleted BOOLEAN DEFAULT FALSE deleted BOOLEAN DEFAULT FALSE
); );