You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.4 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 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
const TableNameFissionChatMsg = "fission_chat_msg"
// FissionChatMsg mapped from table <fission_chat_msg>
type FissionChatMsg struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null;index:idx_user_id_created_at,priority:2" json:"created_at"`
CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_campaign_id_created_at,priority:1;comment:活动ID(fission_campaign表)" json:"campaign_id"`
UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id_created_at,priority:1;comment:用户ID(fission_user表)" json:"user_id"`
ChatID int64 `gorm:"column:chat_id;type:bigint;not null;index:idx_chat_id_source_created_at,priority:1;comment:聊天窗ID(fission_chat)" json:"chat_id"`
Source string `gorm:"column:source;type:varchar(32);not null;index:idx_chat_id_source_created_at,priority:2;comment:来源" json:"source"`
MsgType int8 `gorm:"column:msg_type;type:tinyint;not null;comment:消息类型" json:"msg_type"`
Val string `gorm:"column:val;type:text;not null;comment:消息数据" json:"val"`
}
// TableName FissionChatMsg's table name
func (*FissionChatMsg) TableName() string {
return TableNameFissionChatMsg
}