https://github.com/kuangshp/typeorm-model-generator-cli
该工具将数据库的表生成model
https://github.com/kuangshp/typeorm-model-generator-cli
Last synced: 5 months ago
JSON representation
该工具将数据库的表生成model
- Host: GitHub
- URL: https://github.com/kuangshp/typeorm-model-generator-cli
- Owner: kuangshp
- Created: 2019-08-15T00:31:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T13:11:39.000Z (over 2 years ago)
- Last Synced: 2025-04-25T13:03:52.362Z (5 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 使用场景
主要适用于先有了数据库的数据表,根据现有的数据表生成`typeorm`的实体类## 使用方式
- 1、安装包
```shell
npm install typeorm-model-generator-cli -D
```* 2、在项目的`package.json`中配置命令
```js
"scripts": {
"db": "typeormCli init"
}
```* 3、运行命令