Looks like I can use the dbgenerated function?
# orm-help
t
Looks like I can use the dbgenerated function?
r
Hi @Taylor Lindores-Reeves đź‘‹ Glad to know the dbgenerated function works for your usecase.
t
Hey @Raphael Etim unfortunately it didn’t as I needed a reference to another field which isn’t supported. But not to worry, I just added a simple function in JS to update the field to 24hours ahead. Unfortunate it can’t be done on the DB level though.
r
Thanks for the update. Do you mind opening a feature request detailing how you expect it to work so our team can take a look.
t
Thanks I have commented on what I think is a related issue that already exists: https://github.com/prisma/prisma/issues/5338