Upstream sync
This commit is contained in:
23
models/contract.go
Normal file
23
models/contract.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user