Updata:修改字段类型
This commit is contained in:
parent
cfeacb48fd
commit
50bd0d0702
@ -12,7 +12,7 @@ type AnnualReport struct {
|
|||||||
UpdatedAt time.Time
|
UpdatedAt time.Time
|
||||||
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_annual_report_deleted_at;"`
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_annual_report_deleted_at;"`
|
||||||
FileName string `gorm:"column:file_name;type:varchar(100);not null;default:'';comment:文件名称"`
|
FileName string `gorm:"column:file_name;type:varchar(100);not null;default:'';comment:文件名称"`
|
||||||
Date int64 `gorm:"column:date;type:int;not null;default:0;comment:日期"`
|
Date int64 `gorm:"column:date;type:bigint;not null;default:0;comment:日期"`
|
||||||
FileUrl string `gorm:"column:file_url;type:varchar(1024);not null;default:'';comment:访问地址"`
|
FileUrl string `gorm:"column:file_url;type:varchar(1024);not null;default:'';comment:访问地址"`
|
||||||
Status int32 `gorm:"column:status;type:int;not null;default:2;comment:状态:1上架 2 下架"`
|
Status int32 `gorm:"column:status;type:int;not null;default:2;comment:状态:1上架 2 下架"`
|
||||||
Sort int32 `gorm:"column:sort;type:int;not null;default:1;comment:排序"`
|
Sort int32 `gorm:"column:sort;type:int;not null;default:1;comment:排序"`
|
||||||
|
Loading…
Reference in New Issue
Block a user