Skip to content

Conversation

@MathijsR94
Copy link
Collaborator

One sentence summary

[Multi sentence description]

[Bulleted CL]

[Extra notes]

@MathijsR94 MathijsR94 requested review from Reinand and brdv March 3, 2025 12:58
CREATE TABLE `Season` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`name` VARCHAR(191) NOT NULL,
`game_id` INTEGER NOT NULL,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, make the relationship many-to-many that way you could make a Season that involves multiple games?

Comment on lines 56 to +59
challenger_id Int
challenger Team @relation("challenger", fields: [challenger_id], references: [id])
defender_id Int
defender Team @relation("defender", fields: [defender_id], references: [id])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a MatchParticipants model, so you can create a 2v2

Co-authored-by: Reinand <133855289+Reinand@users.noreply.github.com>
id Int @id @default(autoincrement())
name String @db.VarChar(255)
game_stats UserGameStats[]
teams TeamMember[]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
teams TeamMember[]
teams Team[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants