We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd71a43 commit 927df7eCopy full SHA for 927df7e
node-registrar/pkg/db/models.go
@@ -19,7 +19,7 @@ type Account struct {
19
PublicKey string `gorm:"type:text;not null;unique" json:"public_key"`
20
// Relations | likely we need to use OnDelete:RESTRICT (Prevent Twin deletion if farms exist)
21
// @swagger:ignore
22
- Farms []Farm `gorm:"foreignKey:TwinID;references:TwinID;constraint:OnDelete:RESTRICT" json:"farms"`
+ Farms []Farm `gorm:"foreignKey:TwinID;references:TwinID;constraint:OnDelete:RESTRICT" json:"farms"`
23
}
24
25
type Farm struct {
0 commit comments