20 lines
841 B
Go
20 lines
841 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// BackendAiChatSession AI聊天会话表
|
|
type BackendAiChatSession struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
|
UserID uint64 `orm:"column(user_id);default(0)" json:"user_id"`
|
|
ProviderID uint64 `orm:"column(provider_id);default(0)" json:"provider_id"`
|
|
Title string `orm:"column(title);size(200)" json:"title"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
|
|
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
|
}
|
|
|
|
func (m *BackendAiChatSession) TableName() string {
|
|
return "yz_backend_ai_chat_session"
|
|
}
|