Files
old-backend/models/contract.go
2023-09-18 12:27:40 +02:00

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
}