<filename>server/models/Image.js
const mongoose = require('mongoose');

const ImageSchema = new mongoose.Schema({
  clientUID: {
    type: String
  },
  imageURL: {
    type: String,
    unique: true
  },
  videoURL: {
    type: String
  },
  status: {
    type: String
  },
  tutorUID: {
    type: String
  },
  school: {
    type: String
  },
  course: {
    type: String
  },
  purchased: {
	   type: Number
  },
  timestamp: {
    type: Number
  },
  reportComment: {
    type: String
  },
  reportReason: {
    type: String
  },
  comment: {
    type: String
  },
  duration: {
	  type: Number
  }
});

module.exports = mongoose.model('Image', ImageSchema);
