Fix incorrect documentation comment (has many -> has one)

This commit is contained in:
Johannes Riecken 2023-06-06 17:03:12 +02:00
parent 661781a3d7
commit 8de1ee040f

View File

@ -11,7 +11,7 @@ import (
// He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table) // He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
// He speaks many languages (many to many) and has many friends (many to many - single-table) // He speaks many languages (many to many) and has many friends (many to many - single-table)
// His pet also has one Toy (has one - polymorphic) // His pet also has one Toy (has one - polymorphic)
// NamedPet is a reference to a Named `Pets` (has many) // NamedPet is a reference to a named `Pet` (has one)
type User struct { type User struct {
gorm.Model gorm.Model
Name string Name string