summaryrefslogtreecommitdiff
path: root/src/services/users/user.model.js
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-14 16:31:59 +0300
committereug-vs <eug-vs@keemail.me>2020-11-14 16:31:59 +0300
commit36465387454cdb797f886f732d40a70faa92cbad (patch)
tree28616bd04e3e98c5bd40e82b0c674a0ea9437357 /src/services/users/user.model.js
parent2a791b8999dc08824baf6787021d45df676b4088 (diff)
downloadbsu-fantom-36465387454cdb797f886f732d40a70faa92cbad.tar.gz
refactor: reuse Mongoose connection in Agenda
Diffstat (limited to 'src/services/users/user.model.js')
-rw-r--r--src/services/users/user.model.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/services/users/user.model.js b/src/services/users/user.model.js
new file mode 100644
index 0000000..74a83ae
--- /dev/null
+++ b/src/services/users/user.model.js
@@ -0,0 +1,6 @@
+const { model } = require('mongoose');
+const userSchema = require('./user.schema.js');
+
+module.exports = model('User', userSchema);
+
+