youtubeVideo.js 511 B

1234567891011
  1. export default {
  2. youtubeId: { type: String, min: 11, max: 11, required: true, index: true, unique: true },
  3. title: { type: String, trim: true, required: true },
  4. author: { type: String, trim: true, required: true },
  5. duration: { type: Number, required: true },
  6. uploadedAt: { type: Date },
  7. rawData: { type: Object },
  8. updatedAt: { type: Date, default: Date.now, required: true },
  9. createdAt: { type: Date, default: Date.now, required: true },
  10. documentVersion: { type: Number, default: 2, required: true }
  11. };