modelRT/orm/circuit_diagram_page.go

22 lines
671 B
Go

// 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 JSONMap `gorm:"column:label;type:jsonb;default:'{}'"`
Context JSONMap `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"
}