Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f50333d223 | |||
| a7f73eb96a | |||
| 57b4791a4a | |||
| 7737b8b4d2 |
@@ -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"
|
||||||
|
}
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ 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`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (DBParticipant) TableName() string {
|
func (DBParticipant) TableName() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user