spotifyTrack.js 521 B

123456789101112131415161718
  1. export default {
  2. trackId: { type: String, unique: true },
  3. name: { type: String },
  4. albumId: { type: String },
  5. albumTitle: { type: String },
  6. albumImageUrl: { type: String },
  7. artists: [{ type: String }],
  8. artistIds: [{ type: String }],
  9. duration: { type: Number },
  10. explicit: { type: Boolean },
  11. externalIds: { type: Object },
  12. popularity: { type: Number },
  13. isLocal: { type: Boolean },
  14. createdAt: { type: Date, default: Date.now, required: true },
  15. documentVersion: { type: Number, default: 1, required: true }
  16. };