customer_service_chat_log.gen.go 1.4 KB

12345678910111213141516171819202122232425262728
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. )
  8. const TableNameCustomerServiceChatLog = "customer_service_chat_log"
  9. // CustomerServiceChatLog mapped from table <customer_service_chat_log>
  10. type CustomerServiceChatLog struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Type int32 `gorm:"column:type;type:int(11);not null;default:1" json:"type"` // 消息类型 1 玩家消息 2客服消息
  13. AccID int64 `gorm:"column:acc_id;type:bigint(20);not null" json:"acc_id"` // 玩家账号id
  14. OpenID string `gorm:"column:open_id;type:varchar(100);not null" json:"open_id"` // open_id
  15. PlayerName string `gorm:"column:player_name;type:varchar(50);not null" json:"player_name"` // 玩家昵称
  16. Text string `gorm:"column:text;type:longtext;not null" json:"text"` // 消息内容
  17. Time time.Time `gorm:"column:time;type:datetime;not null" json:"time"` // 消息发送时间
  18. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间
  19. }
  20. // TableName CustomerServiceChatLog's table name
  21. func (*CustomerServiceChatLog) TableName() string {
  22. return TableNameCustomerServiceChatLog
  23. }