Added foreign key relations to all core components
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user