Added foreign key relations to all core components

This commit is contained in:
2025-06-19 14:45:58 +10:00
parent 3be1e46f69
commit 804b9b2792
4 changed files with 73 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ type DBConversation struct {
DetailsUpdate *time.Time
SemiLiveUpdate *time.Time
JobUpdate *time.Time
Participants []DBParticipant `gorm:"foreignKey:ConversationId;references:Id"`
}
func (DBConversation) TableName() string {