// 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 TableNameChatRecord = "chat_records" // ChatRecord 聊天历史记录 type ChatRecord struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期 UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期 DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期 Content string `gorm:"column:content;comment:内容" json:"content"` // 内容 ContentType int64 `gorm:"column:content_type;default:1;comment:类型:1-提问 2-回答" json:"content_type"` // 类型:1-提问 2-回答 SessionID int64 `gorm:"column:session_id;not null;comment:会话ID" json:"session_id"` // 会话ID UserID int64 `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"` // 用户ID BotID int64 `gorm:"column:bot_id;not null;comment:聊天ID" json:"bot_id"` // 聊天ID BotType int64 `gorm:"column:bot_type;comment:用户类型:1-微信 2-小程序 3-智能体" json:"bot_type"` // 用户类型:1-微信 2-小程序 3-智能体 } // TableName ChatRecord's table name func (*ChatRecord) TableName() string { return TableNameChatRecord }