sequelize-typescript-auto
v0.0.3
Published
generate sequelize-typescript models from database
Downloads
56
Maintainers
Readme
sequelize-typescript-auto
Automatically generate models for sequelize-typescript
install
npm i -g sequelize-typescript-auto
use
Usage: sequelize-typescript-auto [options]
Options:
-V, --version output the version number
-H, --host <host> database host
-d, --database <database> name of database
-u, --username <username> user of database
-x, --password <password> password of database
-p, --port <port> port of database, default 3306 (default: 3306)
-o, --output <dir> models output dir (default: "./models")
-f, --prefix <prefix> to exclude table prefix (default: "")
-h, --help output usage information
example
sequelize-typescript-auto -H localhost -d test -u root -x 123456 -p 3306 -f test_ -o ./_models