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

@@ -15,6 +15,8 @@ type DBSession struct {
Recording bool
RemoteNameDisplayable string
SessionDnis string
Segments []DBSegment `gorm:"foreignKey:SessionId;references:Id"`
}
func (DBSession) TableName() string {