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