You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RobertCZ thanks for the request but sadly this is not possbile yet, because these field types are currently not present in the prisma.dmmf which is the source of truth for all generated prisma types and also our generated schemas. 😢
Not sure if this is already possible and I just missed it in the docs but how about supporting database specific field types?
Eg Prisma already generates for MS SQL field
TinyInt
It would be nice to say somewhere that
Int @db.TinyInt
should be mapped totinyint()
and generate automaticallyfor Zod with some db specific validators eg
const tinyint = () => z.number().int().min(0).max(255)
The text was updated successfully, but these errors were encountered: