Halvor
07/07/2021, 5:35 PMjanpio
janpio
fields in the @relation that points to some other model.Halvor
07/07/2021, 6:29 PMHalvor
07/07/2021, 6:31 PMmodel match {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
session_id BigInt @unique
session_key String
arbitrated arbitrated?
}
model arbitrated {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
match match @relation(fields: [matchId], references: [id])
matchId Int @unique
session_id BigInt @unique
stat stat[]
}Halvor
07/07/2021, 6:32 PMHalvor
07/07/2021, 7:41 PM