feat(search): align conversation result payloads
This commit is contained in:
@@ -42,7 +42,10 @@ type Conversation struct {
|
||||
LastMessageAt *int64 `gorm:"index" json:"last_message_at,omitempty"`
|
||||
LastNonSysMsgAt *int64 `json:"last_non_system_message_at,omitempty"`
|
||||
|
||||
Contact *Contact `gorm:"foreignKey:ContactID" json:"contact,omitempty"`
|
||||
Contact *Contact `gorm:"foreignKey:ContactID" json:"contact,omitempty"`
|
||||
Inbox *Inbox `gorm:"foreignKey:InboxID" json:"inbox,omitempty"`
|
||||
Assignee *User `gorm:"foreignKey:AssigneeID" json:"assignee,omitempty"`
|
||||
Messages []Message `gorm:"foreignKey:ConversationID" json:"messages,omitempty"`
|
||||
}
|
||||
|
||||
// BeforeCreate auto-generates UUID before inserting a new Conversation record.
|
||||
|
||||
Reference in New Issue
Block a user