diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-30 17:06:30 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-30 17:06:30 +0200 |
| commit | 5604c548f3e01c4f1eeeb14aae5629d22161e1f6 (patch) | |
| tree | c5503709c0f8aad9053edfbe8dfdcecbee16af4e | |
| parent | 9470091052fcfec1782b0d9ef13ca29906b9df04 (diff) | |
| download | shrinker-5604c548f3e01c4f1eeeb14aae5629d22161e1f6.tar.gz shrinker-5604c548f3e01c4f1eeeb14aae5629d22161e1f6.zip | |
add config and guide for schema generation
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | model_config.json | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..11884d2 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ + * Generating the models from the db schema: `sequelize-auto -o ./models -d vainweb -h localhost -u vainweb -x vainweb -e mysql -c model_config.json` diff --git a/model_config.json b/model_config.json new file mode 100644 index 0000000..3597f93 --- /dev/null +++ b/model_config.json @@ -0,0 +1,7 @@ +{ + "additional": { + "timestamps": false, + "underscored": true, + "freezeTableName": true + } +} |
