Вам нужно создать экземпляр sequelize:
const Sequelize = require("sequelize");
const sequelize = new Sequelize(
database,
username,
password,
{
host: host,
logging: false,
dialect: "mysql",
port: 3306,
pool: {
max: 5,
min: 0,
idle: 10000
}
}
);
И после этого определите:
const Project = sequelize.define('project', {
title: Sequelize.STRING,
description: Sequelize.TEXT
})
const Task = sequelize.define('task', {
title: Sequelize.STRING,
description: Sequelize.TEXT,
deadline: Sequelize.DATE
})