Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Heritage ¶
type Heritage struct { ID string `json:"id" gorm:"primary_key;type:uuid"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` Longitude float64 `json:"longitude" gorm:"index"` Latitude float64 `json:"latitude" gorm:"index"` Addresses *StringSlice `json:"addresses" gorm:"index;type:jsonb"` Commune string `json:"commune" gorm:"index"` LieuDit string `json:"lieu_dit" gorm:"index"` Datings *StringSlice `json:"datings" gorm:"index;type:jsonb"` Photos *StringSlice `json:"photos" gorm:"type:jsonb"` Status string `json:"status"` Study string `json:"study"` StudiedAt string `json:"studied_at"` Names *StringSlice `json:"names" gorm:"type:jsonb"` Phase string `json:"phase"` Description string `json:"description"` }
An Heritage is a database record.
func NewHeritage ¶
NewHeritage returns new Heritage with a default id.
type StringSlice ¶
type StringSlice []string
A StringSlice is a []string with marshalization methods
func NewStringSlice ¶
func NewStringSlice(args ...string) *StringSlice
NewStringSlice returns a StringSlice eventually initialized with the given args.
func (*StringSlice) Scan ¶
func (f *StringSlice) Scan(input interface{}) error
Scan unserializes a StringSlice
Click to show internal directories.
Click to hide internal directories.