aboutsummaryrefslogtreecommitdiff
path: root/src/db/orm.ts
diff options
context:
space:
mode:
authorTHarley2018-02-22 17:18:34 +0000
committerTHarley2018-02-22 17:18:34 +0000
commit0c0d700c93886ba8d585fe0a6495d35bddb67807 (patch)
treeb2dbed468410c5f1f7905775ed627c4b4aa4851b /src/db/orm.ts
parentMerge branch 'trh/yarn' into 'master' (diff)
parentInclude error-handling in middleware stack (diff)
downloadmedicine-0c0d700c93886ba8d585fe0a6495d35bddb67807.tar.gz
medicine-0c0d700c93886ba8d585fe0a6495d35bddb67807.zip

Merge branch ‘trh/error-middleware’ into ‘master’

Error-handling Middleware

See merge request cs3099group-be-4/project-code!13

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;