Added foreign key relations to all core components
This commit is contained in:
1 parent
3be1e46f69
commit
804b9b2792
4 files changed
+73
No files matched your search
@@ -20,6 +20,8 @@ type DBParticipant struct {
|
||||
Wrapup *string `gorm:"type:json"`
|
||||
WrapupExpected *bool
|
||||
WrapupRequired *bool
|
||||
|
||||
Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"`
|
||||
}
|
||||
|
||||
func (DBParticipant) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user