msg.gen.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. "gorm.io/gorm"
  8. )
  9. const TableNameMsg = "msg"
  10. // Msg 消息表
  11. type Msg struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  16. Status int64 `gorm:"column:status;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  17. Fromwxid string `gorm:"column:fromwxid;comment:发送方微信ID" json:"fromwxid"` // 发送方微信ID
  18. Toid string `gorm:"column:toid;comment:接收人微信ID/群ID" json:"toid"` // 接收人微信ID/群ID
  19. Msgtype int64 `gorm:"column:msgtype;comment:消息类型" json:"msgtype"` // 消息类型
  20. Msg string `gorm:"column:msg;comment:消息" json:"msg"` // 消息
  21. BatchNo string `gorm:"column:batch_no;comment:批次号" json:"batch_no"` // 批次号
  22. Cc string `gorm:"column:cc;comment:国家区号" json:"cc"` // 国家区号
  23. Phone string `gorm:"column:phone;comment:手机号" json:"phone"` // 手机号
  24. }
  25. // TableName Msg's table name
  26. func (*Msg) TableName() string {
  27. return TableNameMsg
  28. }