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