Files
agent/backend/internal/models/ai_expert_category.go

18 lines
452 B
Go
Raw Normal View History

2026-07-23 14:07:13 +08:00
package models
import "time"
// SaAIExpertCategory groups experts from the local expert catalog.
type SaAIExpertCategory struct {
2026-07-23 14:07:13 +08:00
ID uint `gorm:"primaryKey"`
Identity string `gorm:"type:char(36);uniqueIndex"`
Slug string `gorm:"size:80;uniqueIndex;not null"`
Name string `gorm:"size:120;not null"`
CreatedAt time.Time
UpdatedAt time.Time
}
func (SaAIExpertCategory) TableName() string {
return "sa_ai_expert_categories"
2026-07-23 14:07:13 +08:00
}