modelRT/orm/circuit_diagram_grid.go

22 lines
549 B
Go

// Package orm define database data struct
package orm
import (
"time"
)
// Grid structure define abstracted info set of electrical grid
type Grid struct {
ID int64 `gorm:"column:ID;primaryKey"`
TAGNAME string `gorm:"column:TAGNAME"`
Name string `gorm:"column:NAME"`
Description string `gorm:"column:DESCRIPTION"`
Op int `gorm:"column:OP"`
Ts time.Time `gorm:"column:TS"`
}
// TableName func respresent return table name of Grid
func (g *Grid) TableName() string {
return "GRID"
}