f3cf18b1bb
add Object
19 lines
487 B
Go
19 lines
487 B
Go
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"`
|
|
}
|