Join Slack
Powered by
what is the best way to save timestamp with prisma...
# orm-help
o
Oluwasetemi Ojo
07/15/2021, 8:20 PM
what is the best way to save timestamp with prisma modelling.
n
Nour Elba
07/15/2021, 9:03 PM
In the schema, DateTime type with "@default_(_now_())"_ is usually easiest for creation. Updating can be done with "@updatedAt"
o
Oluwasetemi Ojo
07/16/2021, 7:50 AM
thanks
@Nour Elba
7
Views
Open in Slack
Previous
Next