Spotify Database Schema

Screen Shot 2016-08-23 at 4.15.47 PM

I created this db schema for Spotify as an exercise. 
My goals were to maximize flexibility, time complexity for searches and
to maximize readability, simplicity of design and to maximize joins.

-Each User has many events, playlists, followers and users they are following.
-Each Artist has many songs, events and keywords
-Each Song has many artists, many genres, many albums, many playlists and keywords
-Each Album has many songs and many keywords
-Each Genre has many songs, many keywords and many events
-Each Playlist belongs to many users and many keywords

It would be easy with this design to quickly provide keyword searching on 
all of the categories represented in the data set at Spotify.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s