Skip to content
Snippets Groups Projects
Commit ba8fb010 authored by Ashwanth K's avatar Ashwanth K
Browse files

Upload New File

parent d01461ca
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment