Skip to content

Commit

Permalink
explicitly add unique constrain on nodeTwinId on health-report
Browse files Browse the repository at this point in the history
  • Loading branch information
Omarabdul3ziz committed Jan 10, 2024
1 parent cf19a8c commit f9586cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grid-proxy/internal/explorer/db/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (NodeGPU) TableName() string {
}

type HealthReport struct {
NodeTwinId int
NodeTwinId int `gorm:"unique;not null"`
Healthy bool
}

Expand Down

0 comments on commit f9586cd

Please sign in to comment.