12345678910111213141516171819202122232425262728 |
- // 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
- import (
- "time"
- )
- const TableNameCustomerServiceChatLog = "customer_service_chat_log"
- // CustomerServiceChatLog mapped from table <customer_service_chat_log>
- type CustomerServiceChatLog struct {
- ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
- Type int32 `gorm:"column:type;type:int(11);not null;default:1" json:"type"` // 消息类型 1 玩家消息 2客服消息
- AccID int64 `gorm:"column:acc_id;type:bigint(20);not null" json:"acc_id"` // 玩家账号id
- OpenID string `gorm:"column:open_id;type:varchar(100);not null" json:"open_id"` // open_id
- PlayerName string `gorm:"column:player_name;type:varchar(50);not null" json:"player_name"` // 玩家昵称
- Text string `gorm:"column:text;type:longtext;not null" json:"text"` // 消息内容
- Time time.Time `gorm:"column:time;type:datetime;not null" json:"time"` // 消息发送时间
- CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间
- }
- // TableName CustomerServiceChatLog's table name
- func (*CustomerServiceChatLog) TableName() string {
- return TableNameCustomerServiceChatLog
- }
|