-
Notifications
You must be signed in to change notification settings - Fork 0
Tournament ~ Entity Relationship Diagram
MikeChen012345 edited this page Nov 5, 2023
·
12 revisions
An Entity-Relationship Diagram (ERD) based on user stories for a single-elimination style tournament:
Entities:
-
User - Represents both the registered user and the player.
- Attributes: Username, Participation (player/spectator), Email, Password, Status (active/suspended)
-
Tournament - Represents the single-elimination tournament.
- Attributes: TournamentID, Name, StartDate, EndDate, MaxPlayers, Description, Rules, DrawRule
-
Match - Represents individual matches within a tournament.
- Attributes: MatchID, MatchStatus (ongoing, completed, draw), MatchStartDate, MatchEndDate, MatchDuration, Score
-
Game - Represents the games that can be played in the tournaments.
- Attributes: GameID, GameName
-
Notification - Represents the notifications sent to users about their matches.
- Attributes: NotificationID, Content, Timestamp, Visibility
-
Chat - Represents the live chat feature for both players and spectators.
- Attributes: ChatID
-
Message - Represents the individual message which populates the Chat entity.
- Attributes: MessageID, Content, Timestamp
Relationships:
- A User can create multiple Tournaments. (Many-to-Many)
- A Tournament consists of multiple Matches. (One-to-Many)
- A Match involves multiple Users. (Many-to-Many)
- A Tournament is associated with one Game. (Many-to-One)
- A User can join many Tournaments (Many-to-Many)
- A User receives multiple Notifications. (Many-to-Many)
- A Match has only one Chat. (One-to-One)
- A Chat has many Message. (One-to-Many)
- A Match has a winner User. (Many-to-One)
- A Tournament has multiple winner User. (Many-to-Many)
- A User can send multiple Messages. (One-to-Many)
-
Tournaments
-
Games
-
Matches
-
API
-
Forums
-
Users & Friending