diff options
| author | Tom Harley | 2018-02-08 18:28:57 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-02-08 18:28:57 +0000 |
| commit | d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3 (patch) | |
| tree | ce54ab9c43b611455b658cf2eaf4fc3c5ea71732 /src/db/orm.ts | |
| parent | added literal matching (diff) | |
| parent | configured server to use pg server on lab machines (diff) | |
| download | medicine-d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3.tar.gz medicine-d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3.zip | |
Merge branch ‘trh/db-orm’ into trh/payload-checker
Diffstat (limited to 'src/db/orm.ts')
| -rw-r--r-- | src/db/orm.ts | 12 |
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..78d5832 --- /dev/null +++ b/src/db/orm.ts @@ -0,0 +1,12 @@ +import { Sequelize } from 'sequelize-typescript'; + +const seq = new Sequelize({ + database: 'be4', + dialect: 'postgres', + username: 'admin', + password: '', + operatorsAliases: false, + modelPaths: [__dirname + 'model'] +}); + +export default seq; |
