text: var mongoose = require('mongoose');
  var Schema = mongoose.Schema;
  const shortid = require('shortid');
  
  
  var Video_cursoSchema = new mongoose.Schema({
    _id: {
    type: String,
    'default' : shortid.generate
  },
    'idVideo': {
  type: Schema.Types.ObjectId,
  ref: 'Video'
  },
  'idCurso': {
  type: Schema.Types.ObjectId,
  ref: 'Curso'
  },
    updated_date: { type: Date, default: Date.now },
  });
  
  module.exports = mongoose.model('Video_curso', Video_cursoSchema);
  