Skip to content

arbizu88/Sequelize-CRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequelize-CRUD

Learning how to use Sequelize ORM with Nodejs. Own project with few examples.

Generate Models

node_modules/.bin/sequelize model:generate --name {entity_name} --attributes {attr_name}:{type[string,number,etc..],...}

Migrate Models

Running this will migrate your models to the db

node_modules/.bin/sequelize db:migrate

Generate Seeds

Running this will generate your seeders

node_modules/.bin/sequelize seed:generate --name seed-{entity_name}

Run your custom seeds

This command will execute the querys that are inside the seeders.

node_modules/.bin/sequelize db:seed:all

About

Learning how to use Sequelize ORM with Nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published