English | 中文
Automatically generate models for sequelize-typescript
npm i -g sequelize-typescript-auto
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
sequelize-typescript-auto -H localhost -d test -u root -x 123456 -p 3306 -f test_ -o ./_models
- support mysql
- cli usage
- programing usage
- map foreignkeys
- hash check
- generate countor
- support SQL Server
- support PostgreSQL