Header menu via header.js

This commit is contained in:
karim hassan
2025-08-24 23:47:39 +00:00
parent f1103d67a0
commit eabd0aa50f
25 changed files with 869 additions and 185 deletions

21
backend/sql/seed.sql Normal file
View File

@@ -0,0 +1,21 @@
-- Super Sunday Seed (tournoi + joueurs)
BEGIN;
INSERT INTO tournaments (name, location, start_date, end_date)
VALUES ('Super Sunday Demo', 'Padel Club', CURRENT_DATE, CURRENT_DATE)
ON CONFLICT DO NOTHING;
-- Récupère l'id du tournoi inséré / existant
WITH t AS (
SELECT id FROM tournaments WHERE name='Super Sunday Demo' ORDER BY id DESC LIMIT 1
)
INSERT INTO participants (tournament_id, full_name)
SELECT t.id, p.full_name
FROM t
JOIN (VALUES
('Alex Dupont'),('Samira El Idrissi'),('Marco Rossi'),('Lina Gomez'),
('Yuki Tanaka'),('Nina Kowalski'),('Oliver Smith'),('Fatou Ndiaye')
) AS p(full_name) ON TRUE
ON CONFLICT DO NOTHING;
COMMIT;