// 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 TableNameAdminNotice = "admin_notice" // AdminNotice mapped from table type AdminNotice struct { ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"` Environment string `gorm:"column:environment;type:varchar(64);not null;index:environment,priority:1" json:"environment"` // 所在环境 NoticeType int32 `gorm:"column:notice_type;type:int(11);default:1" json:"notice_type"` // 公告类型(1普通;2停服) Content string `gorm:"column:content;type:text;not null" json:"content"` // 公告内容 ServerIds string `gorm:"column:server_ids;type:varchar(512)" json:"server_ids"` // 服务器 SendInterval int64 `gorm:"column:send_interval;type:bigint(20);default:1" json:"send_interval"` // 发送间隔(分钟) StartAt int64 `gorm:"column:start_at;type:bigint(20)" json:"start_at"` // 开始时间 EndAt int64 `gorm:"column:end_at;type:bigint(20)" json:"end_at"` // 结束时间 LastSendAt int64 `gorm:"column:last_send_at;type:bigint(20)" json:"last_send_at"` // 最后发送时间 MsgID string `gorm:"column:msg_id;type:varchar(64);not null" json:"msg_id"` // 广播消息ID Status int32 `gorm:"column:status;type:int(11);index:status,priority:1;default:1" json:"status"` // 公告状态(1运行中;2已结束;3已终止;4未开始) 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"` // 创建时间 } // TableName AdminNotice's table name func (*AdminNotice) TableName() string { return TableNameAdminNotice }