package model import "time" // CaptainMessageReport records a user's report of an assistant-authored message. type CaptainMessageReport struct { ID uint `gorm:"primaryKey" json:"id"` AccountID uint `gorm:"not null;index" json:"account_id"` ConversationID uint `gorm:"not null;index" json:"conversation_id"` MessageID uint `gorm:"not null;index" json:"message_id"` UserID uint `gorm:"not null;index" json:"user_id"` ReportReason string `gorm:"size:255;not null" json:"report_reason"` Description string `gorm:"type:text" json:"description"` CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"` UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"` } func (CaptainMessageReport) TableName() string { return "captain_message_reports" }