22 lines
620 B
Go
22 lines
620 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"`
|
||
|
|
StationID int64 `gorm:"column:station_id"`
|
||
|
|
Status int `gorm:"column:status"`
|
||
|
|
Name string `gorm:"column:name"`
|
||
|
|
Owner string `gorm:"column:owner"`
|
||
|
|
Comment string `gorm:"column:comment"`
|
||
|
|
Context string `gorm:"column:context"`
|
||
|
|
TSModified time.Time `gorm:"column:ts_modified"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// TableName func respresent return table name of Page
|
||
|
|
func (p *Page) TableName() string {
|
||
|
|
return "Page"
|
||
|
|
}
|