UdemyAPI_Define model schema
User Schema const mongoose = require('mongoose'); const UserSchema = new mongoose.Schema({ name: { type: String, required: [true, 'Please add a name'] }, email: { type: String, required: [true,'Please add an email'], unique: true, match: [ /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/, 'Please add a valid email' ] }, role: { type: String, enum: ['user', 'instructor'], defalut: 'user' }, passwo..