new file: main_dc/yalarba/api_yal/internal/models/Object.go
add Object
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user