- 移除常量字符串'1970-01-01 00:00:00'

This commit is contained in:
gazebo
2019-09-20 15:46:09 +08:00
parent 92cdb1d975
commit d1d0e576eb
5 changed files with 10 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ type ModelIDCULD struct {
CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"`
UpdatedAt time.Time `orm:"auto_now;type(datetime)" json:"updatedAt"`
LastOperator string `orm:"size(32)" json:"lastOperator"` // 最后操作员
DeletedAt time.Time `orm:"type(datetime);default('1970-01-01 00:00:00')" json:"deletedAt"`
DeletedAt time.Time `orm:"type(datetime);null" json:"deletedAt"`
}
// 同步标识掩码