migration-seeder-factory v1.1.8
Migration, Seeder and Factory Creator
This package provides an easy way to generate migrations, seeders, and factories using built-in commands in Node.js. Developed by NexxtApp, this tool streamlines database management for your applications.
Note: MongoDB functionality will be available soon. Meanwhile, all features for MySQL and PostgreSQL are fully functional and ready to use.
For more information - how to use, check this article - NexxtApp Medium at Migration, Seeder and Factory Creator In Nodejs.
Features
- Generate migrations, seeders, and factories effortlessly
- Simple CLI commands for quick setup
- Compatible with Node.js version v18.20.7 and later.
- Supports PostgreSQL, MySQL
Installation
npm install migration-seeder-factoryHow to Use After Installation
Usage
Run the following commands to create respective database assets:
Note
--db= - Not required. If you want, you can set the default database via your .env variable: DEFAULT_DB_TYPE.
Commands
Create a Migration:
For MySQL:
npx nexxt make:migration create_sites_table --db=mysqlFor PostgreSQL:
npx nexxt make:migration create_sites_table --db=postgreyRun Migrations:
For MySQL:
npx nexxt migrate --db=mysqlFor PostgreSQL:
npx nexxt migrate --db=postgreyRun Specific Migration File:
For MySQL:
npx nexxt migrate create_sites_table --db=mysqlFor PostgreSQL:
npx nexxt migrate create_sites_table --db=postgreyRollback Migrations:
For MySQL:
npx nexxt migrate:rollback --db=mysqlFor PostgreSQL:
npx nexxt migrate:rollback --db=postgreyRollback Specific Migrations File:
For MySQL:
npx nexxt migrate:rollback create_sites_table --db=mysqlFor PostgreSQL:
npx nexxt migrate:rollback create_sites_table --db=postgreyCreate a Seeder:
For MySQL:
npx nexxt make:seeder sites_seeder --db=mysqlFor PostgreSQL:
npx nexxt make:seeder sites_seeder --db=postgreyCreate Factory:
For MySQL:
npx nexxt make:factory sites_factoryRun Seeders:
For MySQL:
npx nexxt seed --db=mysqlFor PostgreSQL:
npx nexxt seed --db=postgreyRun Specific Seeder File:
For MySQL:
npx nexxt seed sites_seeder --db=mysqlFor PostgreSQL:
npx nexxt seed sites_seeder --db=postgreyLicense
Restricted Use License
Copyright (c) 2025 NexxtApp
Permissions
You are granted a limited, non-exclusive, non-transferable right to use this software under the following conditions:
- You may use this software only for personal or internal projects.
- You must retain this copyright notice in any use of the software.
Restrictions
You may not:
- Modify, alter, reverse engineer, or create derivative works based on this software.
- Distribute, publish, sublicense, share, or make the software available to any third party.
- Sell, rent, lease, or claim ownership of this software or any part of it.
Enforcement
Any violation of these terms immediately revokes your right to use the software, and legal action may be taken against unauthorized use.
Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE USE OF THIS SOFTWARE.
By using this software, you acknowledge and agree to these terms.
For more information, please contact NexxtApp at https://nexxtapp.com.
For more information about, how it works - NexxtApp Medium at Migration, Seeder and Factory Creator In Nodejs.