var mongoose = require('mongoose');

var captionSchema = new mongoose.Schema({
  _id: { type: String, unique: true},
  url: String,
  captions: [{
      start: Number,
      dur: Number,
      value: String,
      extra_data: Array
  }]
});

module.exports = mongoose.model('Caption', captionSchema);
var mongoose = require('mongoose');

var captionSchema = new mongoose.Schema({
  _id: { type: String, unique: true},
  title: String,
  url: String,
  captions: [{
      start: Number,
      dur: Number,
      value: String,
      extra_data: Array
  }]
});

module.exports = mongoose.model('Caption', captionSchema);
Add title to mongoose caption schema
Add title to mongoose caption schema
