Update db schema + add hasher func

This commit is contained in:
Kevin Puig
2025-09-27 14:53:15 -04:00
parent 072bd7f0d7
commit 0818d9828a
3 changed files with 11 additions and 7 deletions

View File

@@ -56,7 +56,6 @@ model Category {
name String
position Int
Channel Channel[]
Message Message[]
}
model Channel {
@@ -71,12 +70,10 @@ model Channel {
model Message {
id String @id @default(uuid(7))
Channel Channel? @relation(fields: [channelId], references: [id])
channelId String?
Category Category? @relation(fields: [categoryId], references: [id])
categoryId String?
User User? @relation(fields: [userId], references: [id])
userId String?
Channel Channel @relation(fields: [channelId], references: [id])
channelId String
User User @relation(fields: [userId], references: [id])
userId String
deleted Boolean
text String
replies Reply[] @relation("MessageToReply")