Logan
08/07/2022, 12:08 AMmodel serververification {
id String @id @default(cuid())
guildId String @db.VarChar(20)
enabled Boolean @db.Bit(1)
unverifiedRoleId String? @db.VarChar(20)
panelMessageId String? @db.VarChar(20)
panelChannelId String? @db.VarChar(20)
logChannelId String? @db.VarChar(20)
verifiedRoleIds String? @db.LongText
@@index([guildId], map: "guildId_fkey")
}
Hey, if my prisma schema looks like this, then my prisma.serververfication.create
shouldn't be asking me to input an id
right? It should create and generate a unique key for the id
field? Because it doesn't seem to be doing that, it tells me its missing a required field.
serververificationCreateInput.id`: A value is required but not set
Raphael Etim
08/08/2022, 9:29 AMcuid
.Logan
08/08/2022, 10:28 AM