You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i define the model using gorm.Model, and call BatchInsert() function, there will be an error.
The error is :Unknown column 'model' in 'field list'.
My table model like this:
If i define the model using gorm.Model, and call BatchInsert() function, there will be an error.
The error is :Unknown column 'model' in 'field list'.
My table model like this:
type User struct {
gorm.Model
Name string
}