{
entities: {
users: {
1: {
id: 1,
username: ‘nav’,
email: ‘[email protected]’,
imgUrl: ‘nav.jpg'
},
2: {
id: 2,
username: ‘christina’,
email: ‘[email protected]',
imgUrl: ‘christina.jpg'
},
3: {
id: 3,
username: ‘george’,
email: ‘[email protected]',
imgUrl: ‘george.jpg'
}
4: {
id: 3,
username: ‘adi’,
email: ‘[email protected]',
imgUrl: ‘adi.jpg'
}
},
songs: {
1: {
id: 1,
title: ‘Hey Ya!’,
duration: 2:59
albumId: 1,
},
2: {
id: 2,
title: ‘Paper Planes’,
duration: 179
albumId: 2
},
3: {
id: 3,
title: ‘3005’,
duration: 179
albumId: 3
}
4: {
id: 4,
title: ‘III. Telegraph Ave (“Oakland” by Lloyd)’,
duration: 179
albumId: 3
}
},
albums: {
1: {
id: 1,
title: ’Speakerboxxx/The Love Below’,
year: 2003
genre: ‘Hip Hop’
artistId: 1,
imgUrl: 'albumImg.jpg'
},
2: {
id: 2,
title: ‘Kala’,
year: 2007
genre: ‘Hip Hop’
artistId: 2,
imgUrl: 'albumImg.jpg'
}
3: {
id: 3,
title: ‘Because the Internet’,
year: 2013
genre: ‘Hip Hop’
artistId: 3,
imgUrl: 'albumImg.jpg'
}
},
artists: {
1: {
id: 1,
name: ‘Outkast’,
bio: '',
imgUrl: 'artist.jpg'
},
2: {
id: 2,
name: ‘M.I.A.’,
bio: '',
imgUrl: 'artist.jpg'
}
2: {
id: 2,
name: ‘Childish Gambino’,
bio: '',
imgUrl: 'artist.jpg'
}
},
playlistSongs: {
1: {
id: 1,
playlist_id: 2,
song_id: 3
},
2: {
id: 2,
playlist_id: 1,
song_id: 4
},
3: {
id: 3,
playlist_id: 2,
song_id: 2
}
},
playlists: {
1: {
id: 1,
name: '(૭ ◉༬◉)૭⁾⁾⁾⁾',
description: ‘^_^’
imgUrl: 'playlist.jpg'
},
2: {
id: 2,
name: '~ ✰ 💸 𝘣𝘰𝘰𝘰𝘫𝘦𝘦𝘦 💸 ✰ ~,
description: ‘’
imgUrl: 'playlist.jpg'
},
3: {
id: 3,
name: 'love is a box of chocolates.’,
description: ‘you never know what you're gonna get. 😕’
imgUrl: 'playlist.jpg'
}
},
follows: {
1: {
id: 1,
user_id: 1,
followable_id: 1,
followable_type: 'Artist'
},
2: {
id: 2,
user_id: 1,
followable_id: 2,
followable_type: 'Artist'
},
3: {
id: 3,
user_id: 1,
followable_id: 1,
followable_type: 'Playlist'
},
4: {
id: 4,
user_id: 1,
followable_id: 2,
followable_type: 'Playlist'
}
}
},
ui: {
currentSong: 2,
playerPaused: true/false,
authModalOpen: true/false,
newPlaylistModalOpen: true/false,
addSongToPlaylistModalOpen: true/false,
deletePlaylistModalOpen: true/false,
loading: true/false
},
session: {
currentUserId: 3
},
errors: {
sessionErrors: ["Incorrect username or password"],
userErrors: ["Username or e-mail address already taken”, "Password too short"],
playlistErrors: ["Playlist name cannot be blank"]
}
}