refactor: shorten model and table prefixes
This commit is contained in:
@@ -2,8 +2,8 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// SenlinAgentAIExpertCategory groups experts from the local expert catalog.
|
||||
type SenlinAgentAIExpertCategory struct {
|
||||
// SaAIExpertCategory groups experts from the local expert catalog.
|
||||
type SaAIExpertCategory struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
Identity string `gorm:"type:char(36);uniqueIndex"`
|
||||
Slug string `gorm:"size:80;uniqueIndex;not null"`
|
||||
@@ -12,6 +12,6 @@ type SenlinAgentAIExpertCategory struct {
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
func (SenlinAgentAIExpertCategory) TableName() string {
|
||||
return "senlin_agent_ai_expert_categories"
|
||||
func (SaAIExpertCategory) TableName() string {
|
||||
return "sa_ai_expert_categories"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user