When following the Sequelize's document, I created User model by using the sequelize object.
const Sequelize = require("sequelize");
const Model = Sequelize.Model;
const path = "mysql://user:password@localhost:3306/test_db";
const sequelize = new Sequelize(path, {
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
}
});
const User = sequelize.define('user', {
firstName: {
type: Sequelize.STRING,
allowNull: false
},
lastName: {
type: Sequelize.STRING
}
}, {});
The code runs fine but the problem is the Intellisense from the VS Code did not suggest any functions
from the sequelize object like this :

Is this a kind of bug or do I code something wrong?
Just import Sequelize to your utility file with curly brackets
const { Sequelize } = require('sequelize');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With