diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ae47480..5bf6fa0 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -200,15 +200,14 @@ model Bet { } model Message { - id Int @id @default(autoincrement()) + id Int @id @default(autoincrement()) content String attachment String? - createdAt DateTime @default(now()) - user User @relation(fields: [userId], references: [id]) + createdAt DateTime @default(now()) + user User @relation(fields: [userId], references: [id]) userId Int - Channel Channel @relation(fields: [channelId], references: [id]) + Channel Channel @relation(fields: [channelId], references: [id]) channelId Int - Reaction Reaction[] } model Channel {