Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

413
Views
Sequelize help (throw new Error(`Unrecognized datatype for attribute "${this.name}.${name}"`);)

Here is the GitHub repo for this project: https://github.com/SethZygner/full-stack-testing

I am trying to use Sequelize to use CRUD in MySQL.

    return sequelize.define("test", {
        PersonID: {
            type: Sequelize.INT
        },
        Name: {
            type: Sequelize.STRING
        }
    });
};

When I run this in the terminal with node server.js it gives me this error: throw new Error(`Unrecognized datatype for attribute "${this.name}.${name}"`);

As well as the error Error: Unrecognized datatype for attribute "test.PersonID"

Again, I'm not sure exactly how this works given my little knowledge on using Sequelize. So the repo will be more help to get a better idea.

For reference, MySQL has a database called DB and a table within it called test

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is no such data type in Sequelize as Sequelize.INT. Replace it with Sequelize.INTEGER. See numeric data types

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!