new file: main_dc/yalarba/api_yal/internal/models/Object.go

add Object
This commit is contained in:
2026-02-11 05:18:31 +05:00
parent 92f18e15b9
commit f3cf18b1bb
@@ -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"`
}