🎨 移除软删除字段的默认值类型定义,简化数据结构
All checks were successful
BuildImage / build-image (push) Successful in 2m6s

This commit is contained in:
李寻欢 2025-04-08 14:21:37 +08:00
parent e91c9ec94b
commit 2960115bbc

View File

@ -12,5 +12,5 @@ type BaseModel struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt int64 `json:"-" gorm:"index:deleted; default:0"`
IsDel soft_delete.DeletedAt `json:"-" gorm:"softDelete:flag,DeletedAtField:DeletedAt; index:deleted; default:0; type:tinyint(1)"`
IsDel soft_delete.DeletedAt `json:"-" gorm:"softDelete:flag,DeletedAtField:DeletedAt; index:deleted; default:0"`
}