feat(search): align message result payloads
This commit is contained in:
@@ -23,6 +23,9 @@ type Message struct {
|
||||
ContentAttributes datatypes.JSON `gorm:"type:jsonb" json:"content_attributes,omitempty"` // attachments, mentions, etc
|
||||
AdditionalAttributes datatypes.JSON `gorm:"type:jsonb" json:"additional_attributes,omitempty"`
|
||||
ExternalSourceIDs datatypes.JSON `gorm:"type:jsonb" json:"external_source_ids,omitempty"` // external platform IDs
|
||||
|
||||
Conversation *Conversation `gorm:"foreignKey:ConversationID" json:"conversation,omitempty"`
|
||||
Attachments []Attachment `gorm:"foreignKey:MessageID" json:"attachments,omitempty"`
|
||||
}
|
||||
|
||||
func (Message) TableName() string { return "messages" }
|
||||
|
||||
Reference in New Issue
Block a user