sdy

add @unique in Category name field

...@@ -35,7 +35,7 @@ model Room { ...@@ -35,7 +35,7 @@ model Room {
35 35
36 model Category { 36 model Category {
37 id Int @default(autoincrement()) @id 37 id Int @default(autoincrement()) @id
38 - name String? @default("") 38 + name String @default("") @unique
39 room Room @relation(fields: [roomId], references: [id]) 39 room Room @relation(fields: [roomId], references: [id])
40 roomId Int 40 roomId Int
41 messages Message[] 41 messages Message[]
......