I can set the value as `new Date()` in the code bu...
# orm-help
j
I can set the value as
new Date()
in the code but I would like to do a default, when I try to use
@db.default(now())
it doesn’t work
t
Copy code
createdAt           DateTime               @default(now())
that works for me in postgres.
j
Yeah that works for me, it is the
@db.Timestamp(_6_)
that breaks it.