16 lines
686 B
Go
16 lines
686 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"`
|
|||
|
|
UserAccountID uint64 `gorm:"column:user_account_id;not null;index" json:"user_account_id"`
|
|||
|
|
Category string `gorm:"column:category;type:varchar(64);not null" json:"category"`
|
|||
|
|
Priority string `gorm:"column:priority;type:varchar(16);not null;default:'normal'" json:"priority"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func init() { database.AppendMigrate(&CsTicket{}) }
|
|||
|
|
func (table *CsTicket) TableName() string { return "cs_ticket" }
|