egg-sequelize-demo
- Use
npm run db:migrate:create migration-name
to create migration file - Use
npm run db:migrate
to migrate - Use
npm run db:migrate:rollback
to rollback migration
- Use
npm run db:seed:create seed-name
to create seed file - Use
npm run db:seed
to add data - Use
npm run db:seed:rollback
to rollback seeds