This project is a relational database designed for Capture The Flag (CTF) competitions.
It models:
- Teams and players
- Events and challenges
- Submissions and scoring
Built using MySQL with proper normalization and relationships (1NF–3NF).
The database includes the following tables:
teams– stores team informationplayers– stores individual player datateam_members– links players to teams (many-to-many)events– stores CTF eventschallenges– stores challenges per eventsubmissions– tracks team submissions and scoring
- Open MySQL Workbench (or any MySQL client)
- Run the
ctf_database.sqlfile - The database and tables will be created automatically
Get all challenges for an event:
SELECT * FROM challenges WHERE event_id = 1;
SELECT team_id, SUM(score) AS total_score
FROM submissions
GROUP BY team_id;