John Benton
08/02/2021, 1:14 PMmodel Match {
id String @id
team1 User[]
team2 User[]
}
model User {
id String @id
matches Match[]
}
Ryan
08/02/2021, 1:26 PMUser
model twice in Match
but referencing the Match
only once in User
.Ryan
08/02/2021, 1:27 PMJohn Benton
08/02/2021, 1:30 PMJohn Benton
08/02/2021, 1:31 PMRyan
08/02/2021, 1:33 PM