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"
}