new file: main_dc/yalarba/api_es/internal/models/rest_object.go
create rest_object
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user