From 5604c548f3e01c4f1eeeb14aae5629d22161e1f6 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 30 Mar 2017 17:06:30 +0200 Subject: add config and guide for schema generation --- README.md | 1 + model_config.json | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 README.md create mode 100644 model_config.json 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 + } +} -- cgit v1.3.1