fix what would have been a really bad time with the db

This commit is contained in:
Micha Albert 2024-08-15 17:57:02 +00:00
parent 7e0ad4d1e2
commit 36e70429de
2 changed files with 43 additions and 2 deletions

View file

@ -1,7 +1,7 @@
generator client {
provider = "prisma-client-py"
interface = "asyncio"
recursive_type_depth = 5
recursive_type_depth = "5"
}
datasource db {
@ -23,6 +23,6 @@ model Stream {
is_live Boolean @default(false)
is_focused Boolean @default(false)
key String @unique @default(uuid())
user User @relation(fields: [user_id], references: [id])
user_id String @unique
user User @relation(fields: [user_id], references: [id])
}