16 lines
864 B
Go
16 lines
864 B
Go
package models
|
||
|
||
import "git.apinb.com/bsm-sdk/core/database"
|
||
|
||
// CsTicket 对应 cs_ticket,保存客服工单。
|
||
type CsTicket struct {
|
||
Entity // 公共实体字段
|
||
TicketNo string `gorm:"column:ticket_no;type:varchar(64);not null;uniqueIndex" json:"ticket_no"` // ticket_no 业务字段
|
||
UserAccountID uint64 `gorm:"column:user_account_id;not null;index" json:"user_account_id"` // user_account_id 业务字段
|
||
Category string `gorm:"column:category;type:varchar(64);not null" json:"category"` // category 业务字段
|
||
Priority string `gorm:"column:priority;type:varchar(16);not null;default:'normal'" json:"priority"` // priority 业务字段
|
||
}
|
||
|
||
func init() { database.AppendMigrate(&CsTicket{}) }
|
||
func (table *CsTicket) TableName() string { return "cs_ticket" }
|