changed inviteCode to unique

This commit is contained in:
Bob Burningham 2023-10-14 00:04:30 -07:00
parent c0df5a4df0
commit 2c29ae11e7

View File

@ -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)