event_config.gen.go 887 B

123456789101112131415161718192021
  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. const TableNameEventConfig = "event_config"
  6. // EventConfig mapped from table <event_config>
  7. type EventConfig struct {
  8. ID int32 `gorm:"column:id;type:int(11) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. Name string `gorm:"column:name;type:varchar(128);not null" json:"name"`
  10. EventCode int32 `gorm:"column:event_code;type:int(11) unsigned;not null" json:"event_code"`
  11. Category string `gorm:"column:category;type:enum('LOGIN','CHAPTER','ADV','GOODS','QUERY','_');not null;default:_" json:"category"`
  12. CreatedAt int32 `gorm:"column:created_at;type:int(11) unsigned;not null" json:"created_at"`
  13. }
  14. // TableName EventConfig's table name
  15. func (*EventConfig) TableName() string {
  16. return TableNameEventConfig
  17. }