Add @Created and @Updated annotations to Entity define
zoujiaqing opened this issue · comments
zoujiaqing commented
Add annotations:
- Created : Get the timestamp automatically at creation time.
- Updated : Get the timestamp automatically at update time.
Sample code:
import hunt.entity;
class User
{
@PrimaryKey
int id;
string name;
@Created
int created;
@Updated
int updated;
}