Upstream sync
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
"github.com/lib/pq"
|
||||
)
|
||||
@@ -10,6 +12,12 @@ type Contract struct {
|
||||
Name string
|
||||
DeviceIDs pq.Int64Array `gorm:"type:integer[]"`
|
||||
BuyerID uint
|
||||
StartLat float64
|
||||
StartLon float64
|
||||
EndLat float64
|
||||
EndLon float64
|
||||
StartTime time.Time
|
||||
EndTime time.Time
|
||||
Status string
|
||||
BlockchainID string
|
||||
ContractInfos []ContractInfo
|
||||
|
||||
Reference in New Issue
Block a user