// Package orm define database data struct package orm import "time" // Page structure define circuit diagram page info set type Page struct { ID int64 `gorm:"column:ID;primaryKey"` Tag string `gorm:"column:TAG"` Name string `gorm:"column:NAME"` Label map[string]interface{} `gorm:"column:LABEL;type:jsonb;default:'{}'"` Context map[string]interface{} `gorm:"column:CONTEXT;type:jsonb;default:'{}'"` Description string `gorm:"column:DESCRIPTION"` Op int `gorm:"column:OP"` Ts time.Time `gorm:"column:TS"` } // TableName func respresent return table name of Page func (p *Page) TableName() string { return "PAGE" }