Replies: 3 comments
-
Hi, Thank you for asking the question! Adding: static timestamps = true; Will automatically create You don't have to add them yourself inside your Hope this solves your problem, have a great day :) |
Beta Was this translation helpful? Give feedback.
-
Hello, Thank for answer ! Seems like the timestamp is not persisted to db. What is the setup on DB side for this fields to have ? |
Beta Was this translation helpful? Give feedback.
-
Hello. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I started using denodb recently, in the getting started part I saw the possibility to use
static timestamps = true;
This should add and update created_at and updated_at field in my table if I'm write.
For that I created a table containing the two fields as:
created_at: DataTypes.DATE,
updated_at: DataTypes.DATE
But whenhever I insert something is this table using the api there is null value on both fields.
I am probably doing something wrong but actually I don't know what, do you see something ?
Beta Was this translation helpful? Give feedback.
All reactions