Sequelize
Installation
Install Sequelize with MySQL2 for MariaDB.
/project
npm i sequelize mysql2Sequelize Commands
sequelize-cli init
Create folder structure.
/project
npx sequelize-cli initSeeders
Seeder IDs
How to handle IDs in seeder data.
js
await queryInterface.sequelize.query('ALTER SEQUENCE "Users_id_seq" RESTART WITH 2;');