modelRT/orm/circuit_diagram_station.go

24 lines
662 B
Go
Raw Permalink Normal View History

2025-07-31 16:52:21 +08:00
// 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"`
2025-07-31 16:52:21 +08:00
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"
}