P
Prisma3mo ago
Nick

Prisma Studio not respecting 'not null' fields?

I'm creating a model like this:
model Enquirer {
fName String
sName String
email String @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Enquirer {
fName String
sName String
email String @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
but prisma studio lets me add records with or without fName, sName and email :/ any thoughts what I might be doing wrong? thanks
1 Reply
Nurul
Nurul3mo ago
That shouldn't be possible. What version of Prisma are you running? Were these fields optional before and you made it mandatory at a later point?
Want results from more Discord servers?
Add your server