diff options
Diffstat (limited to 'services/users/user.schema.js')
-rw-r--r-- | services/users/user.schema.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/services/users/user.schema.js b/services/users/user.schema.js new file mode 100644 index 0000000..f2c98ef --- /dev/null +++ b/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 }); + |