Skip to content

Commit

Permalink
update schema prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Dec 3, 2023
1 parent 6ac2c57 commit 9f73cc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ model Statistic {
penaltyMissed Int @default(0)
duelsWon Int @default(0)
duelsTotal Int @default(0)
goalsAgainst Int @default(0)
red Boolean @default(false)
yellow Boolean @default(false)
Expand All @@ -112,6 +113,8 @@ model Statistic {
match Match @relation(fields: [matchId], references: [id])
player Player @relation(fields: [playerId], references: [id])
@@unique([matchId, playerId])
}

model Club {
Expand Down Expand Up @@ -160,12 +163,12 @@ model Selection {
id Int @id @default(autoincrement())
captain Int @default(0)
played Int @default(0)
points Int @default(0)
teamId Int
playerId Int
value Int
starting Int @default(0)
weekId Int
points Int
week Week @relation(fields: [weekId], references: [id], onDelete: Cascade)
player Player @relation(fields: [playerId], references: [id], onDelete: Cascade)
team Team @relation(fields: [teamId], references: [id], onDelete: Cascade)
Expand Down

0 comments on commit 9f73cc6

Please sign in to comment.