Upstream sync

This commit is contained in:
Senad Uka
2023-09-18 12:27:40 +02:00
parent 9750aa2c37
commit 1f30f85787
30 changed files with 309 additions and 150 deletions

23
models/contract.go Normal file
View File

@@ -0,0 +1,23 @@
package models
import "github.com/jinzhu/gorm"
type Contract struct {
gorm.Model
Name string
DeviceID []uint
BuyerID uint
Status string
BlockchainID string
ContractInfos []ContractInfo
}
func (Contract) Update() (bool, error) {
return false, nil
}
func (Contract) Create() (bool, error) {
return false, nil
}
func (Contract) Delete() (bool, error) {
return false, nil
}