new file: main_dc/yalarba/api_es/internal/models/rest_object.go

create rest_object
This commit is contained in:
2025-11-10 22:40:44 +05:00
parent 593840ec28
commit 2dbf2c557e
@@ -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
}