// 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 TableNameMessageRecord = "message_records" // MessageRecord mapped from table type MessageRecord struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期 UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期 Status int64 `gorm:"column:status;default:1;comment:发送状态:1 未发送 2 发送中 3 发送成功 4 发送失败 ….(待定)" json:"status"` // 发送状态:1 未发送 2 发送中 3 发送成功 4 发送失败 ….(待定) DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期 BotWxid string `gorm:"column:bot_wxid;comment:机器人微信 id" json:"bot_wxid"` // 机器人微信 id ContactID int64 `gorm:"column:contact_id;comment:联系人 id" json:"contact_id"` // 联系人 id ContactType int64 `gorm:"column:contact_type;comment:类型:1好友,2群组,3企业微信联系人" json:"contact_type"` // 类型:1好友,2群组,3企业微信联系人 ContactWxid string `gorm:"column:contact_wxid;comment:接收方微信 id" json:"contact_wxid"` // 接收方微信 id ContentType int64 `gorm:"column:content_type;comment:内容类型 1 文本 2 文件" json:"content_type"` // 内容类型 1 文本 2 文件 Content string `gorm:"column:content;comment:发送内容" json:"content"` // 发送内容 Meta string `gorm:"column:meta;comment:元数据(如文件名)" json:"meta"` // 元数据(如文件名) ErrorDetail string `gorm:"column:error_detail;comment:异常原因" json:"error_detail"` // 异常原因 SendTime time.Time `gorm:"column:send_time;comment:发送时间" json:"send_time"` // 发送时间 SourceType int64 `gorm:"column:source_type;comment:源类型 1 点发 2 群发 3 SOP 阶段 4 SOP 节点" json:"source_type"` // 源类型 1 点发 2 群发 3 SOP 阶段 4 SOP 节点 SourceID int64 `gorm:"column:source_id;comment:源 ID" json:"source_id"` // 源 ID SubSourceID int64 `gorm:"column:sub_source_id;comment:次源 ID" json:"sub_source_id"` // 次源 ID OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID } // TableName MessageRecord's table name func (*MessageRecord) TableName() string { return TableNameMessageRecord }