song.js 774 B

123456789101112131415161718
  1. export default {
  2. mediaSource: { type: String, min: 11, max: 11, required: true, index: true, unique: true },
  3. title: { type: String, trim: true, required: true },
  4. artists: [{ type: String, trim: true, default: [] }],
  5. genres: [{ type: String, trim: true, default: [] }],
  6. tags: [{ type: String, trim: true, default: [] }],
  7. duration: { type: Number, min: 1, required: true },
  8. skipDuration: { type: Number, required: true, default: 0 },
  9. thumbnail: { type: String, trim: true },
  10. explicit: { type: Boolean },
  11. requestedBy: { type: String },
  12. requestedAt: { type: Date },
  13. verified: { type: Boolean, default: false },
  14. verifiedBy: { type: String },
  15. verifiedAt: { type: Date },
  16. discogs: { type: Object },
  17. documentVersion: { type: Number, default: 10, required: true }
  18. };