package models import "time" type SaSource 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"` SourceInboxItemID *uint `gorm:"index"` SourceInboxItemIdentity *string `gorm:"type:char(36);index"` Kind string `gorm:"not null"` Title string `gorm:"not null"` URL string FilePath string ContentText string `gorm:"type:text"` CreatedAt time.Time UpdatedAt time.Time } func (SaSource) TableName() string { return "sa_sources" }