We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9806a04 + 3128567 commit b33b614Copy full SHA for b33b614
models/validator_bans.go
@@ -3,6 +3,6 @@ package models
3
type ValidatorBan struct {
4
ValidatorId uint `json:"validator_id" pg:",pk"`
5
BlockId uint64 `json:"block_id" pg:",pk"`
6
- Validator *Validator `json:"validator" pg:"rel:belongs-to"`
7
- Block *Block `json:"block" pg:"rel:belongs-to"`
+ Validator *Validator `json:"validator" pg:"rel:has-one"`
+ Block *Block `json:"block" pg:"rel:has-one"`
8
}
0 commit comments