Why isn't there an `@createdAt` just like `@update...
# orm-help
m
Why isn't there an
@createdAt
just like
@updatedAt
? It could literally map to
@default(now())
but it would make the schema feel more consistent
👍 1
a
agreed, this would be a nice feature
a
How is @updatedAt supposed to be used? When I try to create a record I keep getting a null constraint, do you have to provide a default value for it?
updatedAt DateTime @updatedAt
nvmd forgot to update my client
as per usual