Sequelize UI

Sequelize UI

Generate Sequelize code in TypeScript for any database, with any configuration.

Example Schemas

About Sequelize UI

Sequelize UI is an online Sequelize ORM code generator, which generates a full Node.js project in TypeScript. Use the schema editor to create your database tables, fields and associations, then preview the Sequelize models and migrations in the code viewer before downloading the project as a zip file or copying code from individual files.

With Sequelize UI, you can also customize your project with the following database configurations:

  • PostgreSQL, MySQL, MariaDB, SQLite or Microsoft SQL Server dialects.
  • Singular or plural table names
  • camelCase or snake_case table and column names.
  • Table name prefixed primary keys or plain id primary keys.
  • Created/updated timestamps or no timestamps.
  • Paranoid models with deleted timestamps.

Get started quickly by choosing one of the included example schemas, or create your own schema.

Sequelize UI for plain JavaScript

This site currently only generates TypeScript code; however, the legacy Sequelize UI site is still available at if you want to generate code for a plain JavaScript project. This project is not actively maintained, but the goal is to eventually update Sequelize UI to support plain JavaScript as well.

Other Sequelize code generators

Sequelize UI is the only web-based code generator for Sequelize and is great for generating an entire Sequelize TypeScript project from scratch, or for learning how to support different database configurations; however, there are a number of other excellent Sequelize code generators.

Sequelize CLI is the official Sequelize CLI tool. It supports generating new models and migrations in plain JavaScript for your Sequelize project, but does not currently support generating TypeScript.

If you have an existing database and want to generate compatible Sequelize code, Sequelize Auto is a CLI tool which supports all SQL dialects and generates Sequelize code in plain JavaScript, ES6 or TypeScript. Much of the code generated by Sequelize UI was modeled after the code generated by Sequelize Auto. Because Sequelize Auto is meant to generate code for an existing database, it does not generate any migration files. There is also a desktop application, Sequelizer, which is built on top of Sequelize Auto with an easy to use GUI.