Premiere verison route admin operationnelle
This commit is contained in:
13
backend/sql/matches.sql
Normal file
13
backend/sql/matches.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- Ensure basic matches table exists
|
||||
CREATE TABLE IF NOT EXISTS matches (
|
||||
id SERIAL PRIMARY KEY,
|
||||
tournament_id INT NOT NULL REFERENCES tournaments(id) ON DELETE CASCADE,
|
||||
player_a_id INT REFERENCES participants(id),
|
||||
player_b_id INT REFERENCES participants(id),
|
||||
court TEXT,
|
||||
start_time TIMESTAMP NULL,
|
||||
score_a INT DEFAULT 0,
|
||||
score_b INT DEFAULT 0,
|
||||
finished BOOLEAN DEFAULT FALSE,
|
||||
created_at TIMESTAMP DEFAULT now()
|
||||
);
|
||||
Reference in New Issue
Block a user