// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model import ( "time" "gorm.io/gorm" ) const TableNameRetrofit = "retrofit" // Retrofit mapped from table type Retrofit struct { ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"` GroupID int64 `gorm:"column:group_id;type:bigint(20)" json:"group_id"` // 模板ID Name string `gorm:"column:name;type:varchar(255)" json:"name"` // 别名 Type int64 `gorm:"column:type;type:bigint(20)" json:"type"` // 加装类型 Mid int64 `gorm:"column:mid;type:bigint(20)" json:"mid"` // 关联ID Nums int64 `gorm:"column:nums;type:bigint(20)" json:"nums"` // 数量 Status int32 `gorm:"column:status;type:tinyint(4);default:1" json:"status"` // 状态 CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"` // 更新时间 DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_users_deleted_at,priority:1" json:"deleted_at"` // 删除时间 } // TableName Retrofit's table name func (*Retrofit) TableName() string { return TableNameRetrofit }