Hi!, I am working with legacy version, I am adding...
# orm-help
c
Hi!, I am working with legacy version, I am adding a new relation one-to-one table with existing rows, so I want to know how to set default value? I c read
@default
but I cant find if its possible define my own function to read and return default value
r
@Cristian Salamea 👋 You can set the value that is a database function in
@default
using
dbgenerated
as shown here but this is possible only on versions 2.17.0 and above. So in this case, you would need to update Prisma.
👍 1