aboutsummaryrefslogtreecommitdiff
path: root/src/db/orm.ts
diff options
context:
space:
mode:
authorTom Harley2018-02-22 18:47:08 +0000
committerTom Harley2018-02-22 18:47:08 +0000
commit5dafe924bbbd5cc09901186ff74e4b68a6dcd52f (patch)
treeff4a76d6eaed5773d89d0da6a02d788ffe210abb /src/db/orm.ts
parentMerge branch 'master' into trh/payload-checker (diff)
downloadmedicine-5dafe924bbbd5cc09901186ff74e4b68a6dcd52f.tar.gz
medicine-5dafe924bbbd5cc09901186ff74e4b68a6dcd52f.zip

Revert “Revert”Merge branch ‘trh/error-middleware’ into ‘master’""

This reverts commit 3198c6c2474101623e3b95bd038effe210c176a8.

Diffstat (limited to 'src/db/orm.ts')
-rw-r--r--src/db/orm.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/orm.ts b/src/db/orm.ts
new file mode 100644
index 0000000..01d8037
--- /dev/null
+++ b/src/db/orm.ts
@@ -0,0 +1,12 @@
+import { Sequelize } from 'sequelize-typescript';
+
+const seq: Sequelize = new Sequelize({
+ database: 'be4',
+ dialect: 'postgres',
+ username: 'admin',
+ password: '',
+ operatorsAliases: false,
+ modelPaths: [`${__dirname}/model`]
+});
+
+export default seq;