sdy

update DB schema

......@@ -27,14 +27,15 @@ model User {
model Room {
id Int @default(autoincrement()) @id
participants User[] @relation(references: [id])
categories Category[] @relation(references: [id])
categories Category[]
Message Message[]
}
model Category {
id Int @default(autoincrement()) @id
name String? @default("")
rooms Room[] @relation(references: [id])
SubRoom Int
room Room @relation(fields: [SubRoom], references: [id])
}
model Message {
......