Join Slack
Powered by
Is it possible to do something like `expires_at ...
# orm-help
b
Brian de la Motte
07/14/2021, 8:02 PM
Is it possible to do something like
expires_at DateTime @default(now() + 30)
in a model?
r
Ryan
07/15/2021, 5:38 AM
@Brian de la Motte
👋 What you proposed isn’t supported, but you can create a custom function that returns the default time via
dbgenerated
.
b
Brian de la Motte
07/15/2021, 8:41 PM
Thanks
@Ryan
!
🙌 1
4
Views
Open in Slack
Previous
Next