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