Skip to content

BBM Labs: A robust Node.js API service featuring user authentication, email functionality, and data management. Utilizes Sequelize for database interaction, Express.js for routing, and a range of libraries for enhanced security and performance

Notifications You must be signed in to change notification settings

Alabs02/bbm.labs.twin

Repository files navigation

Run Migration:

sequelize db:migrate

First, revert the previous migration:

npx sequelize-cli db:migrate:undo

Use the sequelize-cli to generate a new migration file with a descriptive name:

npx sequelize-cli migration:generate --name create_users_table

Ensure that your User model is defined correctly and all the fields mentioned in the seeder file match with your model attributes. Then you can run this seeder using Sequelize CLI:

npx sequelize-cli db:seed:all

And to rollback the seed data:

npx sequelize-cli db:seed:undo:all

To create a seeder file using Sequelize CLI, you can use the following command:

npx sequelize-cli seed:generate --name create-users

Drop the Database:

npx sequelize-cli db:drop

npx sequelize-cli db:create

npx sequelize-cli db:create

About

BBM Labs: A robust Node.js API service featuring user authentication, email functionality, and data management. Utilizes Sequelize for database interaction, Express.js for routing, and a range of libraries for enhanced security and performance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published