-
Notifications
You must be signed in to change notification settings - Fork 0
Add seasons, games and teams #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| CREATE TABLE `Season` ( | ||
| `id` INTEGER NOT NULL AUTO_INCREMENT, | ||
| `name` VARCHAR(191) NOT NULL, | ||
| `game_id` INTEGER NOT NULL, |
There was a problem hiding this comment.
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?
| challenger_id Int | ||
| challenger Team @relation("challenger", fields: [challenger_id], references: [id]) | ||
| defender_id Int | ||
| defender Team @relation("defender", fields: [defender_id], references: [id]) |
There was a problem hiding this comment.
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[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| teams TeamMember[] | |
| teams Team[] |
One sentence summary
[Multi sentence description]
[Bulleted CL]
[Extra notes]