// 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"` Status int `gorm:"column:status"` Op int `gorm:"column:op"` Label string `gorm:"column:label"` Context string `gorm:"column:context"` Description string `gorm:"column:description"` Tag string `gorm:"column:tag"` Name string `gorm:"column:name"` Ts time.Time `gorm:"column:ts"` } // TableName func respresent return table name of Page func (p *Page) TableName() string { return "page" }