2dbf2c557e
create rest_object
23 lines
419 B
Go
23 lines
419 B
Go
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
|
|
|
|
|
|
}
|