Skip to content

Automatically generate models for sequelize-typescript via the command line.

Notifications You must be signed in to change notification settings

leonetosoft/ny-sequelize-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ny Sequelize Auto

This module automatically generates model definitions for RobinBuschmann/sequelize-typescript and TypeGraphql

Support

  • Postgres
  • Mysql
  • Mssql
  • Sqlite

Get Started

It also automatically adds @Field () to https://typegraphql.com/

Download the project:

git clone https://github.com/leonetosoft/ny-sequelize-auto.git

Install Ferreiro:

npm install -g ferreiro

Configure .env file

dialect = postgres
database = user
host = 127.0.0.1
pass = ****
port = 5432
schema = public
user = postgres

Generate your codes:

ferreiro --env .env.pg --template templates/ --outDir build

Code generated in build directory.

Easy change

You can modify the generation algorithm and generate even more things for your project. The imagination is the limit. For that, see the cdocumentation.

References

About

Automatically generate models for sequelize-typescript via the command line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published