Skip to content

Commit

Permalink
removed unique from room name and also room is deleted when last memb…
Browse files Browse the repository at this point in the history
…er leaves
  • Loading branch information
Sama-004 committed Sep 2, 2024
1 parent 3d5e5a4 commit 81fa288
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- DropIndex
DROP INDEX "Room_name_key";
2 changes: 1 addition & 1 deletion db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ model Notification {

model Room {
id String @id @default(cuid())
name String @unique
name String
code String @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
Expand Down

0 comments on commit 81fa288

Please sign in to comment.