Upstream sync

This commit is contained in:
Senad Uka
2023-09-21 11:59:08 +02:00
parent f4dcb823c4
commit c2d6923375
12 changed files with 1247 additions and 89 deletions

View File

@@ -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