youtubeVideo.js 391 B

12345678
  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. createdAt: { type: Date, default: Date.now, required: true },
  7. documentVersion: { type: Number, default: 1, required: true }
  8. };