diff --git a/main_dc/yalarba/api_yal/internal/models/Object.go b/main_dc/yalarba/api_yal/internal/models/Object.go new file mode 100644 index 0000000..e30b338 --- /dev/null +++ b/main_dc/yalarba/api_yal/internal/models/Object.go @@ -0,0 +1,18 @@ +package models + +import () + +type Object struct { + /*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/ + Base Base `gorm:"embedded"` + + // Основная информация + Short_Name string `gorm:"not null" json:"name"` + Long_Name string `json:"long_name"` + Type string `json:"type"` + Phone string `json:"phone"` + Email string `json:"email"` + Site string `json:"site"` + Description string `json:"description"` + Address string `json:"address"` +}