20 lines
472 B
Go
20 lines
472 B
Go
|
|
package model
|
||
|
|
|
||
|
|
type Edge struct {
|
||
|
|
Id int `gorm:"column:id;primaryKey"`
|
||
|
|
CityId int `gorm:"column:city_id"`
|
||
|
|
|
||
|
|
Macaddr string `gorm:"column:macaddr"`
|
||
|
|
Public string `gorm:"column:public"`
|
||
|
|
Isp string `gorm:"column:isp"`
|
||
|
|
Single int `gorm:"column:single"`
|
||
|
|
Sole bool `gorm:"column:sole"`
|
||
|
|
Arch int `gorm:"column:arch"`
|
||
|
|
Online int `gorm:"column:online"`
|
||
|
|
Active bool `gorm:"column:active"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (Edge) TableName() string {
|
||
|
|
return "edge"
|
||
|
|
}
|