sdy

make name became unique field

......@@ -27,7 +27,7 @@ model User {
model Room {
id Int @default(autoincrement()) @id
name String
name String @unique
participants User[] @relation(references: [id])
categories Category[]
messages Message[]
......@@ -51,4 +51,4 @@ model Message {
createdAt DateTime? @default(now())
category Category? @relation(fields: [categoryId], references: [id])
categoryId Int?
}
\ No newline at end of file
}
......