Lets say I have this Prisma Schema :
model User {
id String @id @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
email String @unique
username String
}
Is there a way I can get lets say email's type in my app ?
- One options I can come with is a file that will export types but that way everytime I make a change to my prisma schema I will have to go there and manually edit the type.