From bd3d955ff5dd6b8d149577bc9b12db88dfa56a8b Mon Sep 17 00:00:00 2001 From: Stanko Date: Thu, 8 Aug 2024 13:50:14 +0200 Subject: [PATCH] hopefully fix --- prisma/schema.prisma | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 {