增加相关功能
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// BackendAiChatMessage AI聊天消息表
|
||||
type BackendAiChatMessage struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
||||
SessionID uint64 `orm:"column(session_id)" json:"session_id"`
|
||||
Role string `orm:"column(role);size(20)" json:"role"` // user / assistant
|
||||
Content string `orm:"column(content);type(text)" json:"content"`
|
||||
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
||||
}
|
||||
|
||||
func (m *BackendAiChatMessage) TableName() string {
|
||||
return "yz_backend_ai_chat_message"
|
||||
}
|
||||
Reference in New Issue
Block a user