Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57b4791a4a | ||
|
|
7737b8b4d2 | ||
|
|
2f2388caab |
+5
-1
@@ -192,10 +192,14 @@ type UsersQuery struct {
|
||||
}
|
||||
|
||||
type GCUser struct {
|
||||
Id string `json:"id" gorm:"primaryKey"`
|
||||
Id string `json:"id" gorm:"primaryKey;foreignKey"`
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
State string `json:"state"`
|
||||
Username string `json:"username"`
|
||||
AcdAutoAnswer bool `json:"acdAutoAnswer"`
|
||||
}
|
||||
|
||||
func (GCUser) TableName() string {
|
||||
return "gc_users"
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ type DBParticipant struct {
|
||||
WrapupRequired *bool
|
||||
|
||||
Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"`
|
||||
Calls []DBCall `gorm:"foreignKey:ParticipantId;references:Id`
|
||||
User GCUser `gorm:"foreignKey:UserId;references:Id`
|
||||
}
|
||||
|
||||
func (DBParticipant) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user