activity.js 468 B

12345678910111213141516
  1. module.exports = {
  2. createdAt: { type: Date, default: Date.now, required: true },
  3. hidden: { type: Boolean, default: false, required: true },
  4. userId: { type: String, required: true },
  5. activityType: { type: String, enum: [
  6. "created_account",
  7. "created_station",
  8. "deleted_station",
  9. "created_playlist",
  10. "deleted_playlist",
  11. "liked_song",
  12. "added_song_to_playlist",
  13. "added_songs_to_playlist"
  14. ], required: true },
  15. payload: { type: Array, required: true }
  16. }