Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

412
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda