report.js 681 B

12345678910111213141516171819202122
  1. export default {
  2. resolved: { type: Boolean, default: false, required: true },
  3. song: {
  4. _id: { type: String, required: true },
  5. youtubeId: { type: String, required: true }
  6. },
  7. issues: [
  8. {
  9. category: {
  10. type: String,
  11. enum: ["custom", "video", "title", "duration", "artists", "thumbnail"],
  12. required: true
  13. },
  14. title: { type: String, required: true },
  15. description: { type: String, trim: true, required: false },
  16. resolved: { type: Boolean, default: false, required: true }
  17. }
  18. ],
  19. createdBy: { type: String, required: true },
  20. createdAt: { type: Date, default: Date.now, required: true },
  21. documentVersion: { type: Number, default: 5, required: true }
  22. };