update
This commit is contained in:
@@ -59,12 +59,31 @@ CREATE TABLE IF NOT EXISTS score_attachments (
|
||||
FOREIGN KEY(player_id) REFERENCES players(id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS player_positions (
|
||||
board TEXT NOT NULL,
|
||||
player_id INTEGER NOT NULL,
|
||||
group_key TEXT NOT NULL DEFAULT '',
|
||||
position INTEGER NOT NULL DEFAULT 1,
|
||||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY(board, player_id),
|
||||
FOREIGN KEY(player_id) REFERENCES players(id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS app_settings (
|
||||
key TEXT PRIMARY KEY,
|
||||
value TEXT NOT NULL DEFAULT '',
|
||||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS stage_sessions (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
phase TEXT NOT NULL,
|
||||
group_key TEXT NOT NULL DEFAULT '',
|
||||
round INTEGER NOT NULL DEFAULT 1,
|
||||
started_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ended_at DATETIME
|
||||
);
|
||||
|
||||
INSERT OR IGNORE INTO app_settings(key, value) VALUES
|
||||
('view_proof_in_view', '0'),
|
||||
('live_active_view', 'group_live'),
|
||||
|
||||
Reference in New Issue
Block a user