Update models.md
This commit is contained in:
		
							parent
							
								
									01f571cb77
								
							
						
					
					
						commit
						739ac3d677
					
				@ -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
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user