24 lines
411 B
Go
24 lines
411 B
Go
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
|
|
}
|