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

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

diff --git a/model/admin.model.js b/model/admin.model.js
new file mode 100644
index 0000000..62e6b8f
--- /dev/null
+++ b/model/admin.model.js
@@ -0,0 +1,16 @@
+const mongoose = require('mongoose');
+
+const Schema = mongoose.Schema;
+
+const AdminSchema = 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 Admin = mongoose.model('Admin', AdminSchema);
+
+module.exports = Admin;
\ No newline at end of file
-- 
GitLab