Compare commits

...

2 Commits

Author SHA1 Message Date
57b4791a4a Fixed typo 2025-10-23 16:30:35 +11:00
7737b8b4d2 Added tablename for GC users 2025-10-23 16:01:34 +11:00
2 changed files with 5 additions and 1 deletions

View File

@ -199,3 +199,7 @@ type GCUser struct {
Username string `json:"username"` Username string `json:"username"`
AcdAutoAnswer bool `json:"acdAutoAnswer"` AcdAutoAnswer bool `json:"acdAutoAnswer"`
} }
func (GCUser) TableName() string {
return "gc_users"
}

View File

@ -23,7 +23,7 @@ type DBParticipant struct {
WrapupRequired *bool WrapupRequired *bool
Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"` Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"`
Calls []DBCall `gorm:"foreignKey:ParticipantId;referencesId` Calls []DBCall `gorm:"foreignKey:ParticipantId;references:Id`
User GCUser `gorm:"foreignKey:UserId;references:Id` User GCUser `gorm:"foreignKey:UserId;references:Id`
} }