Default value not working inside a type
Hello I am having a small problem with prism. Basically I can't put default values on the types, as you can see from the screenshot I have inserted a new temporary user and this user has null in the column where that type should be.
"@prisma/client": "^5.17.0"
"prisma": "^5.18.0"
2 Replies
https://www.prisma.io/docs/orm/prisma-schema/data-model/models#considerations-when-using-composite-types
Here the
@default
should be supportedModels | Prisma Documentation
Learn about the concepts for building your data model with Prisma: Models, scalar types, enums, attributes, functions, IDs, default values and more.