Hi Umesh,
Thanks for the nice blog post. May I check with you how would you bind the model that has association to another models.
I'm trying to follow your post, but facing challenge at this point. Appreciate your feedback on this.
type Product struct {
gorm.Model
Name string `gorm:"type:varchar(50)"`
Description string
CountryID uint
Country Country
ProductGroupID uint
ProductGroup ProductGroup
Website string
}
type ProductGroup struct {
gorm.Model
Name string `gorm:"type:varchar(50)"`
Description string
}