diff --git a/main_dc/yalarba/api_es/internal/models/rest_object.go b/main_dc/yalarba/api_es/internal/models/rest_object.go new file mode 100644 index 0000000..4081d69 --- /dev/null +++ b/main_dc/yalarba/api_es/internal/models/rest_object.go @@ -0,0 +1,22 @@ +package models + +import ( + "time" + + "gorm.io/gorm" +) + +type Rest_Object struct { + ID uint `json:"id" gorm:"primarykey"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + DeletedAt gorm.DeletedAt `json:"deleted_at,omitempty" gorm:"index"` + + ShortName string + LongName string + Description string + Type string // event || place + OwnerID uint + + +}