admin_email.gen.go 2.0 KB

12345678910111213141516171819202122232425262728293031
  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 TableNameAdminEmail = "admin_email"
  6. // AdminEmail mapped from table <admin_email>
  7. type AdminEmail struct {
  8. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  9. OperatorID int64 `gorm:"column:operator_id;type:bigint(20)" json:"operator_id"` // 操作人
  10. Title string `gorm:"column:title;type:varchar(255);not null" json:"title"` // 标题
  11. Content string `gorm:"column:content;type:longtext" json:"content"`
  12. Ext string `gorm:"column:ext;type:json" json:"ext"` // 奖励
  13. SendType int32 `gorm:"column:send_type;type:int(11);default:1" json:"send_type"` // 发送方式
  14. SendAt int64 `gorm:"column:send_at;type:bigint(20);not null" json:"send_at"` // 发送时间
  15. Expired int32 `gorm:"column:expired;type:int(11);not null" json:"expired"` // 有效期
  16. ReceiptType int32 `gorm:"column:receipt_type;type:int(11);not null" json:"receipt_type"` // 收件类型
  17. ServerIds string `gorm:"column:server_ids;type:text" json:"server_ids"` // 服务器
  18. PlayerIds string `gorm:"column:player_ids;type:longtext;not null" json:"player_ids"` // 玩家ID
  19. Status int32 `gorm:"column:status;type:int(11);index:status,priority:1;default:1" json:"status"` // 发送状态
  20. UpdatedAt int64 `gorm:"column:updated_at;type:bigint(20)" json:"updated_at"` // 更新时间
  21. CreatedAt int64 `gorm:"column:created_at;type:bigint(20);not null" json:"created_at"` // 创建时间
  22. Remark string `gorm:"column:remark;type:varchar(255);not null" json:"remark"` // 备注
  23. }
  24. // TableName AdminEmail's table name
  25. func (*AdminEmail) TableName() string {
  26. return TableNameAdminEmail
  27. }