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

@@ -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 {