refactor: shorten model and table prefixes
This commit is contained in:
@@ -2,8 +2,8 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// SenlinAgentInboxSuggestion 保存分析阶段的候选草稿;它不是任务、笔记或资料,只有用户确认后才会创建正式对象。
|
||||
type SenlinAgentInboxSuggestion struct {
|
||||
// SaInboxSuggestion 保存分析阶段的候选草稿;它不是任务、笔记或资料,只有用户确认后才会创建正式对象。
|
||||
type SaInboxSuggestion struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
Identity string `gorm:"type:char(36);uniqueIndex"`
|
||||
InboxItemID uint `gorm:"index;not null"`
|
||||
@@ -16,6 +16,6 @@ type SenlinAgentInboxSuggestion struct {
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
func (SenlinAgentInboxSuggestion) TableName() string {
|
||||
return "senlin_agent_inbox_suggestions"
|
||||
func (SaInboxSuggestion) TableName() string {
|
||||
return "sa_inbox_suggestions"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user