Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 567470372f | |||
| 674f7dd5f5 |
@@ -192,7 +192,7 @@ type UsersQuery struct {
|
||||
}
|
||||
|
||||
type GCUser struct {
|
||||
Id string `json:"id" gorm:"primaryKey;foreignKey"`
|
||||
Id string `json:"id" gorm:"primaryKey"`
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
State string `json:"state"`
|
||||
|
||||
@@ -24,7 +24,7 @@ type DBParticipant struct {
|
||||
|
||||
Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"`
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user