refactor: shorten model and table prefixes

This commit is contained in:
2026-07-23 14:30:17 +08:00
parent 6e7be2f3a4
commit 0ca2898ac0
71 changed files with 707 additions and 638 deletions

View File

@@ -2,7 +2,7 @@ package models
import "time"
type SenlinAgentProjectEvent struct {
type SaProjectEvent struct {
ID uint `gorm:"primaryKey"`
Identity string `gorm:"type:char(36);uniqueIndex"`
ProjectID uint `gorm:"index;not null"`
@@ -17,6 +17,6 @@ type SenlinAgentProjectEvent struct {
CreatedAt time.Time
}
func (SenlinAgentProjectEvent) TableName() string {
return "senlin_agent_project_events"
func (SaProjectEvent) TableName() string {
return "sa_project_events"
}