Skip to content

Commit

Permalink
Correct reference type (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmefs authored Nov 14, 2024
1 parent 1604aaf commit 313140a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/belongs_to.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type Company struct {
type User struct {
gorm.Model
Name string
CompanyID string
CompanyID int
Company Company `gorm:"references:CompanyID"` // use Company.CompanyID as references
}

Expand Down

0 comments on commit 313140a

Please sign in to comment.