retrofit.gen.go 1.7 KB

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