const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const classSchema = new Schema({
  courseName: { type: String, unique: true }
});

module.exports = mongoose.model('class', classSchema);

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const classSchema = new Schema({
  courseName: { type: String, required: true, unique: true },
  url: { type: String, required: true }
});

module.exports = mongoose.model('class', classSchema);

Modify Class model to include url
Modify Class model to include url
