diff --git a/model/admin.model.js b/model/admin.model.js new file mode 100644 index 0000000000000000000000000000000000000000..62e6b8fed4b890a9ae3cbe66bcaf513a77d29dcb --- /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