song.js 842 B

12345678910111213141516171819
  1. export default {
  2. youtubeId: { type: String, min: 11, max: 11, required: true, index: true, unique: true },
  3. title: { type: String, required: true },
  4. artists: [{ type: String, default: [] }],
  5. genres: [{ type: String, default: [] }],
  6. duration: { type: Number, min: 1, required: true },
  7. skipDuration: { type: Number, required: true, default: 0 },
  8. thumbnail: { type: String },
  9. likes: { type: Number, default: 0, required: true },
  10. dislikes: { type: Number, default: 0, required: true },
  11. explicit: { type: Boolean },
  12. requestedBy: { type: String },
  13. requestedAt: { type: Date },
  14. verifiedBy: { type: String },
  15. verifiedAt: { type: Date },
  16. discogs: { type: Object },
  17. status: { type: String, required: true, default: "hidden", enum: ["hidden", "unverified", "verified"] },
  18. documentVersion: { type: Number, default: 5, required: true }
  19. };