Added foreign key relations to all core components

This commit is contained in:
Frederick Holland committed 2025-06-19 14:45:58 +10:00
1 parent 3be1e46f69
commit 804b9b2792
4 files changed
+73

No files matched your search

+2
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 {