mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-25 00:50:28 +08:00
更换为null_time,null_int
This commit is contained in:
@@ -17,7 +17,7 @@ type DictData struct {
|
||||
Sort uint16 `gorm:"not null;default:0;comment:'排序'"`
|
||||
Status uint8 `gorm:"not null;default:1;comment:'字典状态: 0=停用, 1=正常'"`
|
||||
IsDelete soft_delete.DeletedAt `gorm:"not null;default:0;softDelete:flag,DeletedAtField:DeleteTime;comment:'是否删除: 0=否, 1=是'"`
|
||||
CreateTime core.TsTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.TsTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
DeleteTime core.TsTime `gorm:"default:null;comment:'删除时间'"`
|
||||
CreateTime core.NullTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.NullTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
DeleteTime core.NullTime `gorm:"default:null;comment:'删除时间'"`
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ type DictType struct {
|
||||
DictRemark string `gorm:"not null;default:'';comment:'字典备注'"`
|
||||
DictStatus uint8 `gorm:"not null;default:1;comment:'字典状态: 0=停用, 1=正常'"`
|
||||
IsDelete soft_delete.DeletedAt `gorm:"not null;default:0;softDelete:flag,DeletedAtField:DeleteTime;comment:'是否删除: 0=否, 1=是'"`
|
||||
CreateTime core.TsTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.TsTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
DeleteTime core.TsTime `gorm:"default:null;comment:'删除时间'"`
|
||||
CreateTime core.NullTime `gorm:"autoCreateTime;not null;comment:'创建时间'"`
|
||||
UpdateTime core.NullTime `gorm:"autoUpdateTime;not null;comment:'更新时间'"`
|
||||
DeleteTime core.NullTime `gorm:"default:null;comment:'删除时间'"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user