26 lines
		
	
	
		
			891 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			891 B
		
	
	
	
		
			Go
		
	
	
	
// 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"
 | 
						||
)
 | 
						||
 | 
						||
const TableNameAiChatHi = "ai_chat_his"
 | 
						||
 | 
						||
// AiChatHi mapped from table <ai_chat_his>
 | 
						||
type AiChatHi struct {
 | 
						||
	HisID     int64      `gorm:"column:his_id;primaryKey" json:"his_id"`
 | 
						||
	SessionID string     `gorm:"column:session_id;not null" json:"session_id"`
 | 
						||
	Role      string     `gorm:"column:role;not null;comment:system系统输出,assistant助手输出,user用户输入" json:"role"` // system系统输出,assistant助手输出,user用户输入
 | 
						||
	Content   string     `gorm:"column:content;not null" json:"content"`
 | 
						||
	CreateAt  *time.Time `gorm:"column:create_at;default:CURRENT_TIMESTAMP" json:"create_at"`
 | 
						||
}
 | 
						||
 | 
						||
// TableName AiChatHi's table name
 | 
						||
func (*AiChatHi) TableName() string {
 | 
						||
	return TableNameAiChatHi
 | 
						||
}
 |