modelRT/orm/circuit_diagram_station.go

24 lines
662 B
Go

// Package orm define database data struct
package orm
import (
"time"
)
// Station structure define abstracted info set of electrical Station
type Station struct {
ID int64 `gorm:"column:id;primaryKey"`
ZoneID int64 `gorm:"column:zone_id"`
TAGNAME string `gorm:"column:tagname"`
Name string `gorm:"column:name"`
Description string `gorm:"column:description"`
IsLocal bool `gorm:"column:is_local"`
Op int `gorm:"column:op"`
Ts time.Time `gorm:"column:ts"`
}
// TableName func respresent return table name of Station
func (s *Station) TableName() string {
return "station"
}