18 lines
392 B
Go
18 lines
392 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type SenlinAgentAISession struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
ProjectID uint `gorm:"index;not null"`
|
|
CreatedBy uint `gorm:"index;not null"`
|
|
Title string `gorm:"not null"`
|
|
Context string `gorm:"type:text"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
func (SenlinAgentAISession) TableName() string {
|
|
return "senlin_agent_ai_sessions"
|
|
}
|