Set method TableName for your struct.
func (user) TableName() string {
return "user"
}
Link: https://gorm.io/docs/models.html#conventions
Set method TableName for your struct.
func (user) TableName() string {
return "user"
}
Link: https://gorm.io/docs/models.html#conventions