package model // Banner represents a platform announcement banner. // Reference: Chatwoot PlatformBanner model — system-wide announcement/alert/update banners // visible to account users when active. type Banner struct { Base Title string `gorm:"size:255;not null" json:"title"` Content string `gorm:"type:text;not null" json:"content"` Active bool `gorm:"default:false" json:"active"` BannerType string `gorm:"size:50;not null" json:"banner_type"` // announcement/alert/update CreatedBy *uint `gorm:"not null" json:"created_by,omitempty"` } func (Banner) TableName() string { return "banners" }