package models import "time" // SaInboxSuggestion 保存分析阶段的候选草稿;它不是任务、笔记或资料,只有用户确认后才会创建正式对象。 type SaInboxSuggestion struct { ID uint `gorm:"primaryKey"` Identity string `gorm:"type:char(36);uniqueIndex"` InboxItemID uint `gorm:"index;not null"` InboxItemIdentity string `gorm:"type:char(36);index"` CreatedBy uint `gorm:"index;not null"` CreatedByIdentity string `gorm:"type:char(36);index"` Kind string `gorm:"not null"` Title string `gorm:"not null"` Body string `gorm:"type:text"` CreatedAt time.Time } func (SaInboxSuggestion) TableName() string { return "sa_inbox_suggestions" }