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:
type User struct {
gorm.Model
Name string
}
The text was updated successfully, but these errors were encountered:
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
}
The text was updated successfully, but these errors were encountered: