19 lines
515 B
Go
19 lines
515 B
Go
|
|
// 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"
|
||
|
|
}
|