hpds_jkw_web/model/project.go

23 lines
1.3 KiB
Go
Raw Normal View History

2023-01-06 10:09:23 +08:00
package model
type Project struct {
2023-01-13 11:26:39 +08:00
ProjectId int64 `xorm:"not null pk autoincr INT(11)" json:"projectId"`
2023-01-06 10:09:23 +08:00
ProjectName string `xorm:"varchar(200) not null " json:"projectName"`
2023-01-13 11:26:39 +08:00
OwnerId int64 `xorm:"not null INT(11) default 0" json:"ownerId"`
2023-01-06 10:09:23 +08:00
LineName string `xorm:"varchar(200) not null " json:"lineName"`
StartName string `xorm:"varchar(200) not null " json:"startName"`
EndName string `xorm:"varchar(200) not null " json:"endName"`
FixedDeviceNum int `xorm:"not null INT(11) default 0" json:"fixedDeviceNum"`
Direction string `xorm:"varchar(200) not null " json:"direction"`
LaneNum int `xorm:"not null INT(4) default 0" json:"laneNum"`
2023-01-13 11:26:39 +08:00
StartPointLng float64 `xorm:"decimal(18,6)" json:"startPointLng"`
StartPointLat float64 `xorm:"decimal(18,6)" json:"startPointLat"`
EndPointLng float64 `xorm:"decimal(18,6)" json:"endPointLng"`
EndPointLat float64 `xorm:"decimal(18,6)" json:"endPointLat"`
2023-01-06 10:09:23 +08:00
Status int `xorm:"SMALLINT default 1" json:"status"`
Creator int64 `xorm:"INT(11) default 0" json:"creator"`
Modifier int64 `xorm:"INT(11) default 0" json:"modifier"`
CreateAt int64 `xorm:"created" json:"createAt"`
UpdateAt int64 `xorm:"updated" json:"updateAt"`
}