Added Calls to Participant via FK. Added User to Participant via FK.
This commit is contained in:
1 parent
ff0f873dd8
commit
2f2388caab
2 files changed
+3
-1
No files matched your search
@@ -23,6 +23,8 @@ type DBParticipant struct {
|
||||
WrapupRequired *bool
|
||||
|
||||
Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"`
|
||||
Calls []DBCall `gorm:"foreignKey:ParticipantId;referencesId`
|
||||
User GCUser `gorm:"foreignKey:UserId;references:Id`
|
||||
}
|
||||
|
||||
func (DBParticipant) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user