modified: "main_dc/yalarba/api_yal/internal/models/\320\276bject.go"
add ownerID into Object
This commit is contained in:
@@ -7,7 +7,8 @@ type Object struct {
|
||||
Base Base `gorm:"embedded"`
|
||||
|
||||
// owner account ID
|
||||
Owner Account `gorm:"foreignKey:OwnerID" json:"owner"`
|
||||
OwnerID uint `json:"owner_id"`
|
||||
Owner Account `gorm:"foreignKey:OwnerID" json:"owner"`
|
||||
|
||||
// Основная информация
|
||||
ShortName string `gorm:"not null" json:"short_name"`
|
||||
|
||||
Reference in New Issue
Block a user