Premiere verison route admin operationnelle

This commit is contained in:
karim hassan
2025-08-25 12:39:54 +00:00
parent eabd0aa50f
commit 38ea5c7da0
21 changed files with 692 additions and 53 deletions

13
backend/sql/matches.sql Normal file
View 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()
);