Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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[] | ... | ... |
-
Please register or login to post a comment