modelRT/orm/circuit_diagram_topologic.go

19 lines
515 B
Go
Raw Permalink Normal View History

// Package orm define database data struct
package orm
import "github.com/gofrs/uuid"
// Topologic structure define topologic info set of circuit diagram
type Topologic struct {
ID int64 `gorm:"column:id"`
Flag int `gorm:"column:flag"`
UUIDFrom uuid.UUID `gorm:"column:uuid_from"`
UUIDTo uuid.UUID `gorm:"column:uuid_to"`
Comment string `gorm:"column:comment"`
}
// TableName func respresent return table name of Page
func (t *Topologic) TableName() string {
return "Topologic"
}