From 313140a5e916dc7c92339f9f6f982e7d5bdcf5af Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 14 Nov 2024 17:48:44 +0800 Subject: [PATCH] Correct reference type (#801) --- pages/docs/belongs_to.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/belongs_to.md b/pages/docs/belongs_to.md index 7d1076de6de..5f150a172ed 100644 --- a/pages/docs/belongs_to.md +++ b/pages/docs/belongs_to.md @@ -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 }