Description

Model specify the model you would like to run db operations

// update all users's name to `hello`
db.Model(&User{}).Update("name", "hello")
// if user's primary key is non-blank, will use it as condition, then will only update the user's name to `hello`
db.Model(&user).Update("name", "hello")

Model is referenced in 134 repositories

github.com/jinzhu/gorm github.com/TF2Stadium/Helen github.com/caTUstrophy/backend

...