generated from VLADIMIR/template
add games operations
This commit is contained in:
@@ -6,11 +6,12 @@ CREATE TABLE
|
||||
description TEXT,
|
||||
start_at TIMESTAMP NOT NULL,
|
||||
scenario_id INTEGER NOT NULL,
|
||||
status VARCHAR(50) DEFAULT 'ready',
|
||||
status VARCHAR(50) DEFAULT 'draft',
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW (),
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW (),
|
||||
started_at TIMESTAMP,
|
||||
ended_at TIMESTAMP,
|
||||
|
||||
|
||||
CONSTRAINT fk_games_scenario FOREIGN KEY (scenario_id) REFERENCES scenarios (id) ON DELETE RESTRICT
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user