summaryrefslogtreecommitdiff
path: root/src/services/users/user.schema.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/users/user.schema.js')
-rw-r--r--src/services/users/user.schema.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/services/users/user.schema.js b/src/services/users/user.schema.js
new file mode 100644
index 0000000..f2c98ef
--- /dev/null
+++ b/src/services/users/user.schema.js
@@ -0,0 +1,14 @@
+const { Schema } = require('mongoose');
+
+module.exports = new Schema({
+ username: {
+ type: String,
+ unique: true,
+ required: true
+ },
+ password: {
+ type: String,
+ required: true
+ }
+}, { timestamps: true });
+