fix: created_at & updated_at (#5)

Co-authored-by: kould <2435992353@qq.com>
This commit is contained in:
Kould
2023-12-13 19:51:02 +08:00
committed by GitHub
parent 57a709cd26
commit 95c6cbbf45
8 changed files with 20 additions and 10 deletions

View File

@@ -14,8 +14,10 @@ pub struct Model {
pub list_style: String,
pub language: String,
pub created_at: DateTimeWithTimeZone,
pub updated_at: DateTimeWithTimeZone,
#[serde(skip_deserializing)]
pub created_at: Date,
#[serde(skip_deserializing)]
pub updated_at: Date,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]