From d07d15c799fd14d294c4df096d1bfae8b72f1eaa Mon Sep 17 00:00:00 2001
From: Ashwanth K <cb.en.u4cse19305@cb.students.amrita.edu>
Date: Sun, 27 Dec 2020 20:39:27 +0530
Subject: [PATCH] Upload New File

---
 model/user.model.js | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 model/user.model.js

diff --git a/model/user.model.js b/model/user.model.js
new file mode 100644
index 0000000..62c5570
--- /dev/null
+++ b/model/user.model.js
@@ -0,0 +1,16 @@
+const mongoose = require('mongoose');
+
+const Schema = mongoose.Schema;
+
+const userSchema = new Schema({
+  _id: { type: String, required: true },
+  name: { type: String, required: true },
+  email: { type: String, required: true },
+  password: { type: String, required: true },
+}, {
+  timestamps: true,
+});
+
+const User = mongoose.model('User', userSchema);
+
+module.exports = User;
\ No newline at end of file
-- 
GitLab