#[entity_timestamp]Available on crate features
macros and seaorm only.Expand description
Default timestamp generator.
Automatically generate created_at and updated_at on create and update.
On insert both fields are set to the current UTC time; on update only
updated_at is refreshed. Also implements
actix_cloud_extra::entity::DefaultColumnTrait for Column.
§Examples
ⓘ
pub struct Model {
...
pub created_at: DateTimeUtc,
pub updated_at: DateTimeUtc,
}
#[entity_timestamp]
impl ActiveModel {}