go-platform/models/system_software_upgrade.go
2026-04-08 20:33:02 +08:00

25 lines
1.3 KiB
Go

package models
import "time"
// SystemSoftwareUpgrade 软件升级产品 yz_system_software_upgrade
type SystemSoftwareUpgrade struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
Name string `orm:"column(name);size(128)" json:"name"`
Code string `orm:"column(code);size(64);unique" json:"code"`
LatestVersion string `orm:"column(latest_version);size(32)" json:"latestVersion"`
FileID *uint64 `orm:"column(file_id);null" json:"fileId"`
DownloadURL *string `orm:"column(download_url);size(512);null" json:"downloadUrl"`
ForceUpdate int8 `orm:"column(force_update);default(0)" json:"forceUpdate"`
ReleaseNotes *string `orm:"column(release_notes);size(2000);null" json:"releaseNotes"`
Status int8 `orm:"column(status);default(1)" json:"status"`
Sort int `orm:"column(sort);default(0)" json:"sort"`
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"createTime"`
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"updateTime"`
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"deleteTime"`
}
func (m *SystemSoftwareUpgrade) TableName() string {
return "yz_system_software_upgrade"
}