Update models.md

This commit is contained in:
Takahiro Ikeuchi 2016-03-31 21:29:26 +09:00
parent 01f571cb77
commit 739ac3d677

View File

@ -21,7 +21,7 @@ type User struct {
ShippingAddress Address // One-To-One relationship (belongs to - use ShippingAddressID as foreign key) ShippingAddress Address // One-To-One relationship (belongs to - use ShippingAddressID as foreign key)
ShippingAddressID int ShippingAddressID int
IgnoreMe int `gorm:"-"` // Ignore this field IgnoreMe int `sql:"-"` // Ignore this field
Languages []Language `gorm:"many2many:user_languages;"` // Many-To-Many relationship, 'user_languages' is join table Languages []Language `gorm:"many2many:user_languages;"` // Many-To-Many relationship, 'user_languages' is join table
} }