package models import "time" type SaInboxItem struct { ID uint `gorm:"primaryKey"` Identity string `gorm:"type:char(36);uniqueIndex"` ProjectID uint `gorm:"index;not null"` ProjectIdentity string `gorm:"type:char(36);index"` CreatedBy uint `gorm:"index;not null"` CreatedByIdentity string `gorm:"type:char(36);index"` SourceType string `gorm:"not null"` Title string Body string Status string `gorm:"not null;default:open"` ConfirmedCount int `gorm:"not null;default:0"` CreatedAt time.Time UpdatedAt time.Time } func (SaInboxItem) TableName() string { return "sa_inbox_items" }