Nick
Nick
Explore posts from servers
PPrisma
Created by Nick on 10/10/2024 in #help-and-questions
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
3 replies