Added Calls to Participant via FK. Added User to Participant via FK.
This commit is contained in:
parent
ff0f873dd8
commit
2f2388caab
@ -192,7 +192,7 @@ 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"`
|
||||
|
||||
@ -23,6 +23,8 @@ type DBParticipant struct {
|
||||
WrapupRequired *bool
|
||||
|
||||
Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"`
|
||||
Calls []DBCall `gorm:"foreignKey:ParticipantId;referencesId`
|
||||
User GCUser `gorm:"foreignKey:UserId;references:Id`
|
||||
}
|
||||
|
||||
func (DBParticipant) TableName() string {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user