From 2c29ae11e752f72ede8828405f0843847bfdbdb8 Mon Sep 17 00:00:00 2001 From: Bob Burningham Date: Sat, 14 Oct 2023 00:04:30 -0700 Subject: [PATCH] changed inviteCode to unique --- prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8779f36..2561384 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -27,7 +27,7 @@ model Server{ id String @id @default(uuid()) name String imageUrl String @db.Text - inviteCode String @db.Text + inviteCode String @unique profileId String profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade)