modified: main_dc/yalarba/api_yal/internal/models/account.go
modified: "main_dc/yalarba/api_yal/internal/models/\320\276bject.go" fix bag with updatfind object into account
This commit is contained in:
@@ -29,5 +29,5 @@ type Account struct {
|
||||
|
||||
|
||||
// Связь: один Account имеет много Objects
|
||||
Objects []Оbject `json:"objects"` // Обратная связь
|
||||
Objects []Object `gorm:"foreignKey:OwnerID" json:"objects,omitempty"`
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ type Object struct {
|
||||
|
||||
// owner account ID
|
||||
Owner Account `gorm:"foreignKey:OwnerID" json:"owner"`
|
||||
AccountID uint `gorm:"not null" json:"account_id"`
|
||||
|
||||
// Основная информация
|
||||
ShortName string `gorm:"not null" json:"short_name"`
|
||||
|
||||
Reference in New Issue
Block a user