Gina is a CLI tool that auto-generates and runs database migrations based on Sequelize ORM models. It compares your current Sequelize model definitions with the actual database schema and produces migration files to synchronize them. The current stable version is 0.0.16, released infrequently. Key differentiators: automatic migration generation from existing models, supports TypeScript, requires a custom `initializeModels` function. It is designed for projects already using Sequelize and needing an automated migration workflow.
npm install gina-sequelizeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full setup: global install, init, editing initializeModels, generating and running a migration.
Install globally: npm install -g gina-sequelize ts-node
Use 'export async function initializeModels()' instead of 'export default async function()'
Use 'gina-cli' for all commands.
Use ES module syntax and named export.
Install ts-node globally: npm install -g ts-node
Manually verify and adjust generated migration files before running.
Use 'gina-cli' command
Ensure file exists at gina/initializeModels.ts and exports a named function 'initializeModels'
Run: npm install -g ts-node
Use Model.init(sequelize) for each model, not sequelize.define