Giter Site home page Giter Site logo

tomjschuster / sequelize-ui Goto Github PK

View Code? Open in Web Editor NEW
278.0 11.0 52.0 9.88 MB

TypeScript code generator for Sequelize ORM

Home Page: https://sequelizeui.app

License: BSD 3-Clause "New" or "Revised" License

JavaScript 1.03% CSS 3.31% TypeScript 95.65% Shell 0.01%
sequelize codegen typescript

sequelize-ui's Introduction

Sequelize UI

https://sequelizeui.app/

Sequelize UI is a Sequelize ORM code generator, which generates a full Node.js TypeScript project, entirely in the browser. Use the schema editor to design 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.

You can customize the generated Sequelize code 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.

View your code Edit your schema

Usage

To use Sequelize UI, either go to https://sequelizeui.app or run the project locally with:

npm ci
npm run build
npm npx serve@latest out

Then go to http://localhost:3000

Plain JavaScript

Sequelize UI currenly only generates TypeScript Sequelize code, however, an older version is still available at https://js.sequelizeui.app/ which generates plain JavaScript Sequelize code. Future support for JavaScript is planned and can be tracked in tasks.md.

sequelize-ui's People

Contributors

dependabot[bot] avatar tomjschuster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sequelize-ui's Issues

Support for uploading SQL to generate models

We need this feature to allow uploading .sql file from already created database to generate models, and migration.

While Sequelize Auto has this features but dosen't provides migration files also

the project always is reloading

Hi, i recently clone this repository, well i decide to play a little bit with the UI but every time i select something the website reload, view code or add a new column the website reload so i check the terminal, it always said that "change detected" and reload.

Add default value to field

while designing schema some time we need to have default values for a field. which is missing in schema design tool

Difference migration feature request

App is migrating everything as combined currently. My feature request is separated migrations. For example I created new scheme and it created migrations it's ok. After that if i add new field in model it needs to create new migration.

Maybe one more button needs like "Save Migration". If you click save button migrations appear combined. If you click migrate button it create new migration according to the difference with the last changes. Because as you know after start the project we can not changes migrations only we can add new ones for changes.

Default value feature

Operations may be easier if the ability to assign default values ​​to fields in models is added.

Adding question mark to optional TS Declares

When a field is not necessarily selected, typescript can be supported by adding a question mark to its type.

Old
declare targetUrl: string | null

New
declare targetUrl?: string | null

Like this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.