TRCPClientError when creating an entry with blank `updatedAt`
Guys, this is my prisma schema:
Every time I try to create an entry, it fails because I didn't provide a value for
updatedAt
. How to fix?
Thanks!2 Replies
You can use the @updatedAt directive for letting prisma correctly handling it
@sebi Sorry, is this some extra code that I have to right? My model includes
@updatedAt
, is it incorrect? My db is postgresql
.