0% found this document useful (0 votes)
46 views24 pages

DBMS

The document discusses the various functionalities provided by Spotify, including core music streaming, social sharing, personalized recommendations, subscription options, and tools that empower artists and rights holders.

Uploaded by

Chahak Lohia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views24 pages

DBMS

The document discusses the various functionalities provided by Spotify, including core music streaming, social sharing, personalized recommendations, subscription options, and tools that empower artists and rights holders.

Uploaded by

Chahak Lohia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 24

DBMS ASSIGNMENT

Database Structure of Spotify

Chahak lohia IPM/223/02


The chosen company, Spotify, is a leading online music streaming service that
offersing a vast catalog of songs, podcasts, and audio content to users worldwide.
Founded in 2006 by Daniel Ek and Martin Lorentzon, Spotify has revolutionized the
way people discover, listen to, and share music.

Website Link: https://www.spotify.com/

Company Overview:

Spotify's mission is to unlock the potential of human creativity by enabling millions of


artists to connect with their fans and listeners to discover and enjoy music they love.
The platform provides users with access to millions of songs from various genres,
languages, and artists, catering to diverse musical tastes and preferences.

With its user-friendly interface and personalized recommendation algorithms, Spotify


offers a seamless and engaging music streaming experience across multiple
devices, including smartphones, tablets, computers, and smart speakers. Users can
create personalized playlists, explore curated playlists and discover new music
through features like Discover Weekly, Release Radar, and Daily Mixes.

Spotify operates on a freemium model, offering both free and premium subscription
tiers. The free tier includes occasional advertisements, while the premium tier
provides ad-free listening, offline playback, and additional features for a monthly
subscription fee.

Multifaceted Functionalities of Spotify

Spotify, a ubiquitous name in the contemporary music landscape, transcends its core
function of audio streaming. It has evolved into a multifaceted ecosystem catering to
both music enthusiasts and music creators and offering a comprehensive suite of
functionalities that enrich the user experience and empower the music industry.
Functionalities for Users:

 Core Music Streaming: At its heart, Spotify allows users to access and
stream millions of songs, podcasts, and audiobooks on-demand. This vast
library caters to diverse preferences, encompassing a wide range of genres
and artists. Beyond simply playing music, Spotify empowers users to discover
new sounds through personalized recommendations, curated playlists based
on mood, activity, or genre, and various browsing features.

 Social Connection and Sharing: Spotify fosters a sense of community by


allowing users to follow friends and artists. This enables them to see each
other's playlists and activity, fostering a shared music experience. Users can
further share their favorite music with others through social media platforms,
potentially leading to the discovery of new music and the creation of shared
playlists with friends. Collaborative playlists allow users to work together in
real-time, adding and organizing songs for a jointly curated listening
experience.

 Personalization and Management: Spotify empowers users to manage their


music journey. They can create and share custom playlists for various
purposes, organize their personal music library by adding, deleting, and
organizing songs and playlists, and access listening history and saved content
for revisiting past selections. Additionally, user profiles and account settings
can be updated to reflect individual preferences and control privacy settings.
 Subscription Options: Spotify caters to diverse needs with various
subscription tiers. The free tier offers basic functionalities with ad-supported
playback. Premium subscriptions remove advertisements, enable on-demand
playback (allowing users to choose any song at any time), and unlock offline
listening capabilities for uninterrupted music enjoyment, even without an
internet connection. Family and student tiers provide cost-effective options for
groups and individuals, respectively.
 Enhanced User Experience: Beyond core functionalities, Spotify offers
features that further enrich the user experience. Lyrics integration allows
users to view synced lyrics while listening to songs, enhancing understanding
and sing-alongs. Equalizer settings cater to individual preferences by allowing
adjustments to audio settings for optimal listening experiences on various
devices. Sleep timers ensure a peaceful listening experience by automatically
stopping playback after a set time, ideal for falling asleep to music. Running
and workout features provide curated playlists and tools specifically designed
to motivate users and track metrics during exercise. For audiophiles, high-
fidelity audio (available on premium plans and compatible devices) unlocks a
lossless audio experience for an unparalleled listening experience.

Functionalities for Music Creators and Rights Holders:

Spotify recognizes the critical role of music creators and rights holders in its
ecosystem. To empower them, it offers a dedicated set of functionalities through the
Spotify for Artists platform. This platform enables artists and labels to:

 Upload and Manage Music Content: Creators can directly upload and
manage their music content on Spotify, including songs, albums, and singles.
This allows them to control their music's availability and presentation on the
platform.
 Gain Valuable Insights: Spotify provides extensive analytics and data
insights to artists and rights holders. These insights reveal listener
demographics, streaming trends, and royalty earnings, enabling creators to
understand their audience better, make informed decisions about their music
careers, and optimize their strategies for reaching and engaging with fans.
 Engage with Fans: Artist profiles act as a central hub for connecting with
fans. Creators can personalize their profiles with pictures, bios, and links to
their websites and social media pages. They can also utilize promotional tools
like Canvas (short looping visuals displayed during playback) and artist picks
(featured playlists or songs) to directly engage with their audiences and
promote their music.
 Monetization Opportunities: Streaming royalties are the primary source of
income for artists and rights holders on Spotify. Spotify ensures accurate
royalty payouts based on the number of times their music is streamed.
Additionally, artists can leverage promotional opportunities within the platform,
such as sponsored playlists and merchandise sales, to further monetize their
work.

By providing these functionalities, Spotify empowers music creators and rights


holders to manage their presence on the platform, gain valuable insights, connect
with their fans, and explore various avenues for monetization. This fosters a
symbiotic relationship between the platform and the music industry, ensuring the
continued creation and distribution of high-quality music.

Functionalities for Licensing and Distribution:

Beyond empowering creators, Spotify facilitates music distribution and licensing,


enabling artists and rights holders to reach a global audience and generate revenue.

 Global Distribution: Partnering with Spotify allows creators to distribute their


music to a vast user base spanning diverse geographical locations. This
eliminates geographical limitations and exposes artists to potential fans
worldwide, fostering international recognition and career growth.
 Streamlined Licensing: Spotify simplifies the licensing process for rights
holders. The platform ensures proper agreements are in place and facilitates
accurate royalty distribution, streamlining the process and ensuring creators
receive their fair share of revenue.

By offering these functionalities, Spotify acts as a bridge connecting artists and rights
holders with a global audience. This facilitates wider music distribution, streamlines
licensing processes, and ultimately contributes to the financial sustainability of the
music industry.
Other Functionalities:

Spotify's functionalities extend beyond core music streaming, offering additional


features to enhance the user experience and cater to diverse needs.

 Integration with Various Devices: Spotify seamlessly integrates with various


smart devices, wearables, and automotive systems. This allows users to
control music playback directly from their smartwatches, speakers, or car
dashboards, providing a convenient and ubiquitous listening experience.
 Podcast Streaming: In addition to music, Spotify offers access to a vast
library of podcasts for on-demand listening and discovery. This caters to users
who enjoy spoken-word content, such as educational podcasts, news
updates, or comedic shows, further enriching the platform's offerings.
 Personalized Recommendations: Spotify utilizes sophisticated algorithms
and user data to personalize music and podcast recommendations. This
translates into "Discover Weekly" and "Release Radar" playlists, tailored to
individual listening preferences, ensuring users encounter new music and
podcasts they are likely to enjoy.
 Content Partnerships: Spotify collaborates with artists, brands, and other
entities to create unique content and experiences for users. These
collaborations can involve curated playlists for specific brands or events,
exclusive artist content, or even interactive experiences. This fosters
innovation and keeps the platform engaging for users.

By offering these additional functionalities, Spotify demonstrates its commitment to


evolving beyond just a music streaming service. It strives to be a comprehensive
audio entertainment platform, catering to diverse user needs and preferences while
fostering innovation and collaboration within the music industry.

In conclusion, Spotify's multifaceted functionalities cater to both music enthusiasts


and creators, solidifying its position as a leading force in the ever-evolving music
landscape. From personalized recommendations and social features for users to
artist empowerment tools and global distribution for creators, Spotify offers a
comprehensive ecosystem that fosters music discovery, connection, and
monetization. This combination of functionalities ensures a vibrant and sustainable
music environment for both audiences and the industry as a whole.

Involved Stakeholders and their Associated Roles in Spotify

Spotify's success relies on a complex network of stakeholders, each playing a crucial


role in the organization's ecosystem. Here's a breakdown of some key stakeholders
and their associated functions:

1. Users:
Music enthusiasts and podcast listeners who utilize Spotify's platform to stream
audio content, discover new music, and engage with the service's various
functionalities. They drive revenue through subscriptions and ad views, provide
valuable user data for platform improvement, and contribute to the overall community
and engagement on Spotify.

2. Music Creators and Rights Holders:


Artists, labels, and individuals holding rights to musical compositions and recordings.
They upload, manage, and monetize their content on Spotify. They provide the core
content for the platform, attract users through their music and artistic endeavors, and
contribute to the platform's diversity and richness.

3. Content Creators (Podcasters):


Individuals or entities producing and uploading spoken-word audio content, such as
podcasts, to the platform. They diversifies the content offerings, attracts new user
segments interested in spoken-word content, and fosters competition and innovation
within the podcasting landscape.

4. Advertising Partners:
Businesses and organizations that pay to display advertisements on the Spotify
platform, reaching a targeted audience of users. They generate revenue through ad
placements, support the platform's free tier, and provide users with access to ad-
supported content.
5. Investors:
Individuals or institutions who have invested capital in Spotify, expecting financial
returns on their investment. They provide financial resources for growth and
development, offer strategic insights and guidance, and hold the organization
accountable for its performance.

6. Employees:
Spotify personnel across various departments, such as engineering, marketing,
customer service, and content acquisition, who contribute to the platform's daily
operations and strategic goals. They drive innovation and development, ensure
smooth platform operations, maintain user satisfaction, and contribute to the
organization's overall success.

7. Regulatory Bodies:
Government agencies and organizations responsible for setting regulations and
standards related to areas like copyright, data privacy, and antitrust laws, impacting
Spotify's operations. They ensure compliance with legal and ethical frameworks,
navigate the regulatory landscape, and adapt to changing regulations.

8. Industry Partners:
Companies and organizations that collaborate with Spotify in various aspects, such
as device manufacturers, streaming service providers, and music industry
organizations.They expand the platform's reach and user base, foster innovation
through collaboration, and contribute to the overall health and growth of the music
and audio entertainment industry.
Events and activities involved in Spotify

1. Content Acquisition:
Negotiating licensing agreements with record labels, music publishers, and
content creators to acquire rights to music, podcasts, and audio content for
streaming on the platform.
2. Content Curation:
Curating and categorizing music, podcasts, and audio content into playlists,
albums, and genres to enhance discoverability and user experience.
3. Platform Development and Maintenance:
Developing and maintaining the Spotify platform, including software updates,
bug fixes, and feature enhancements across web, mobile, and desktop
applications.
4. User Registration and Authentication:
Providing mechanisms for users to create accounts, log in securely, and
manage their profiles, preferences, and subscription plans.
5. Payment Processing:
Handling payment processing and subscription management for premium
users, including billing, invoicing, and payment gateways integration.
6. Recommendation Engine:
Developing and refining algorithms for personalized music and podcast
recommendations based on user behavior, listening history, and preferences.
7. Social Integration:
Integrating social media platforms for user engagement, sharing, and social
features such as following friends, sharing playlists, and viewing activity
feeds.
8. Offline Playback:
Implementing offline playback functionality for Spotify Premium subscribers,
allowing users to download content for offline listening on mobile devices.
9. Advertisement Delivery:
Serving targeted advertisements to users on the free tier, including audio ads,
display ads, and sponsored content, to generate revenue.
10. Analytics and Reporting:
Collecting and analyzing user data, streaming metrics, and performance
analytics to gain insights into user behavior, content consumption trends, and
platform usage.
11. Artist Tools and Promotion:
Developing tools and features for artists and labels to promote their music,
connect with fans, and access analytics and insights on their audience.
12. Concert and Event Promotion:
Partnering with promoters and event organizers to promote concerts, tours,
and live events featuring artists on the platform, including ticket sales and
event discovery.
13. Content Creation and Original Programming:
Producing original podcasts, exclusive content, and artist collaborations to
diversify the content offering and attract new users.
14. Community Engagement and Support:
Engaging with the Spotify community through forums, support channels, and
social media to address user feedback, troubleshoot issues, and provide
assistance.
15. Business Development and Partnerships:
Identifying and pursuing strategic partnerships with hardware manufacturers,
telecom companies, and other platforms to expand reach and drive user
growth.
16. Regulatory Compliance and Licensing:
Ensuring compliance with copyright laws, licensing regulations, and data
privacy requirements in various regions and jurisdictions where Spotify
operates.
17. Continuous Improvement and Innovation:
Continuously researching and implementing new technologies, features, and
innovations to enhance the Spotify platform and stay competitive in the rapidly
evolving digital music landscape.
Detailed Database Steps for Spotify's Hybrid ERP/Information Systems
Implementation

The following outlines the critical database steps involved in implementing a hybrid
ERP/Information System (IS) at Spotify.

1. Planning and Analysis:


1.1. Data Modeling:
The first step in planning and analysis involves data modeling. This crucial phase
entails creating Entity-Relationship (ER) diagrams that visually depict the entities
(e.g., users, songs, playlists) within both the custom system and the chosen cloud
platform. These diagrams also capture the attributes associated with each entity
(e.g., user ID, song title, playlist name) and the relationships between them (e.g.,
one user can create many playlists, one song can be in many playlists).
Furthermore, a comprehensive data dictionary is established to define each data
element. This dictionary details the entity name, attribute name, data type (e.g.,
INTEGER, VARCHAR, DATE), primary key, foreign key, and any constraints (e.g.,
CHECK, NOT NULL) applied to ensure data integrity and consistency.
Finally, to minimize data redundancy and improve data integrity, normalization
techniques (1NF, 2NF, 3NF) are applied to the custom system database schema.
This process helps to eliminate duplicate data storage, reducing storage
requirements and maintenance overhead while also preventing anomalies and
ensuring data consistency.

1.2. Database Platform Selection:


Selecting the appropriate database platform is critical for both the custom system
and the cloud environment. For the custom system, open-source options like
PostgreSQL or MySQL are often considered due to their high scalability,
performance, community support, and cost-effectiveness. However, organizations
might also evaluate commercial options like Oracle Database or Microsoft SQL
Server, which offer robust features, enterprise-grade security, and scalability, albeit
with associated licensing costs.
When choosing a cloud platform, exploring managed database services like
Amazon RDS, Azure SQL Database, or Google Cloud SQL is recommended. These
services provide pre-configured database instances with automated management
features, simplifying administration tasks. Additionally, some cloud platforms offer
integrations with major DBMS vendors. This allows organizations to leverage
existing expertise and potentially reduce migration costs by utilizing familiar DBMS
technologies within the cloud environment.

1.3. Data Mapping:


Data mapping establishes a bridge between the custom system and the cloud
platform. This process involves defining the mapping between entities and attributes
across both systems. It is crucial to distinguish between logical data mapping and
physical data mapping.
Logical data mapping focuses on the business meaning and relationships
between entities and attributes, independent of specific DBMS technologies. This
high-level mapping ensures consistent data representation across both systems.
Physical data mapping, on the other hand, translates the logical data map into the
specific syntax and data types supported by the chosen DBMS platforms in both
the custom system and the cloud platform. This may involve adjustments to data
types, constraints, or schema elements to align with the specific requirements of
each platform.

2. System Design and Development:

2.1. Custom System Database Design:


Once the data model and platform selection are finalized, the custom system
database design commences. This stage involves utilizing relational database
principles to structure the database schema.
Relational database design involves utilizing tables to represent entities, with each
row in a table corresponding to a unique instance of the entity (e.g., a user, a song, a
playlist). Each table is further composed of columns that represent the attributes
associated with the entity (e.g., user ID, song title, playlist name). To ensure efficient
data retrieval and manipulation, a unique identifier, known as the primary key, is
assigned to each table row. Additionally, foreign keys are established to represent
relationships between tables by referencing the primary key of another table.
Furthermore, data types are carefully chosen for each attribute based on the nature
of the data being stored (e.g., numeric data like user IDs or song durations might use
INTEGER or DECIMAL data types, while text data like song titles or artist names
might be stored using VARCHAR or TEXT data types).
To enforce data integrity and consistency, various constraints are implemented
within the database schema.
Finally, to enhance query performance, indexes are strategically created on
frequently accessed columns. Indexes act like fast-lookup directories, enabling the
database to efficiently locate relevant data when processing queries.

2.2. Cloud Platform Database Integration:


 To facilitate data exchange between the custom system database and the
cloud platform database, secure connections are established using the cloud
platform's APIs (Application Programming Interfaces). APIs provide
programmatic interfaces that allow applications to interact with the cloud
platform's database services. By implementing secure authentication and
authorization mechanisms, data can be exchanged reliably and safely
between the two systems.
 Ensuring data consistency across both systems is crucial. Change Data
Capture (CDC) techniques are employed to capture changes made in the
custom system database (such as insertions, updates, and deletions) and
transmit them to the cloud platform database in near real-time. This approach
minimizes the need for manual data synchronization and reduces the risk of
inconsistencies arising from discrepancies between the two databases.
 In scenarios where there are data format discrepancies or schema differences
between the custom system and the cloud platform, data transformation
logic might be required. This logic involves processes like:
o Converting data formats (e.g., changing date formats or delimiters used
in text files).
o Mapping data elements between different schema structures.
o Applying data cleaning techniques to address inconsistencies or
missing values in the data before loading it into the cloud platform
database.

3. Data Migration and Testing:

3.1. Data Extraction: Extracting data from existing systems is the first step in the
migration process. This can be accomplished using various tools like data pumps or
custom scripts. Data pumps are specialized tools designed to extract large
volumes of data efficiently, while custom scripts can be developed to handle specific
data extraction requirements. It is crucial to ensure data integrity and completeness
throughout the extraction process to avoid introducing errors into the new system.

3.2. Data Transformation: After extraction, any necessary data transformation is


applied to ensure the data conforms to the new database schema and data types in
both the custom system and the cloud platform. This might involve tasks like:
 Standardizing data formats: Ensuring consistent formatting across different
data sources (e.g., using the same date format throughout the system).
 Handling missing values: Identifying and addressing missing data elements,
either by imputing appropriate values or excluding them from the migration
process.
 Resolving data inconsistencies: Identifying and correcting any
inconsistencies in the data, such as duplicate entries or conflicting
information.
3.3. Data Cleansing: Before loading the extracted data into the new databases, it is
essential to perform thorough data cleansing. This process involves identifying and
addressing data quality issues like:
 Missing values: Identifying and handling missing data elements using
appropriate techniques.
 Inconsistencies: Correcting any inconsistencies in the data to ensure its
accuracy and reliability.
 Duplicate entries: Eliminating duplicate records to avoid redundancy and
potential data integrity issues.
3.4. Phased Migration and Testing: To minimize disruption and risk, a phased
migration approach is recommended. This involves migrating data in stages,
starting with non-critical data and gradually transitioning to critical data. Rigorous
testing is conducted throughout each phase using various methodologies, including:
 Unit testing: Verifying the functionality of individual data manipulation
operations (e.g., inserting, updating, deleting data) within both the custom
system and the cloud platform database.
 Integration testing: Ensuring data exchange and communication between
the custom system database and the cloud platform database function as
intended.
 System testing: Evaluating the overall functionality and performance of the
entire system, including the custom system, the cloud platform database, and
the data integration components.

By following these comprehensive database steps and maintaining a focus on data


integrity, consistency, and security, organizations like Spotify can successfully
implement a hybrid ERP/Information Systems solution, leveraging the strengths of
both custom development and cloud-based platforms.

Entities:

 Artist
 Song/Album
 Subscriber
 Playlist
 Contract
 License
 Campaign
 Podcast
 User
 Performance Data
 Financial Partner

wherein

Entity: Artist

 Name: Artist's name or stage name.


 Bio: Brief biography or description of the artist.
 Genre: Musical genre(s) associated with the artist.
 Location: Country or region of origin.
 Contact Information: Email address, manager details (optional).
 Streaming time: Total duration of streams

Entity: Song/Album

 Title: Name of the song or album.


 ArtistID: Associated artist(s).
 Release Date: Date of release.
 Genre: Genre(s) associated with the song/album.
 Duration: Song length for individual songs.
 PlaylistID: ID of Playlists the song/album is featured in
 Streaming time: Total duration of streams

Entity: user

 Name: user's name or username.


 UserID: uniquely generated ID for users
 Gender
 Location
 age
 Contact Information: Email address, billing information.
 Subscription Plan: Free, Premium, Premium Family, etc.
 Payment Method: Credit card, debit card, etc.
 Subscription Status: Active, cancelled, expired.

Entity: Playlist

 Name: Playlist title.


 Curator: Creator of the playlist (Spotify-created).
 Description: Brief description of the playlist's content.
 Genre: Associated genre(s).
 Songs: List of songs included in the playlist.
 Creation Date: Date the playlist was created.
 Last Modified Date: Date of the last edit.
 Streaming time of the playlist
Entity: Contract

 Type: Recording contract, publishing deal, licensing agreement, etc.


 ContractID: uniquely identified ID for contract
 Artist/Label: Parties involved in the contract.
 Duration: Duration of the agreement.
 Contract type

Entity: License

 Type: Music licensing for specific use cases (e.g., film, commercial,
video game).
 LicenseID: uniquely generated ID for each license
 Licensed Content: Specific song(s) or album(s) covered by the
license.
 License type
 Term: Duration of the license agreement.
 Fee: Licensing fee associated with the agreement.

Entity: Podcast

 PodcastID: uniquely generated ID for each podcast


 Description: Brief overview of the podcast's content and target
audience.
 Title: name of podcast
 Genre: Genre or category of the podcast (e.g., comedy, news, true
crime).
 EpisodID: unique number with each associated episodes.
 Streaming time: Total listens

Entity:User Performance Data

 Period: Specific period covered by the data (e.g., daily, weekly,


monthly).
 Streaming time: Total duration of streams across all content.
 Genre: favourite genre of user based on his data
 Favourite songs: of user
 Favourite artists: of user based on their listening data
Entity: Financial Partner

 Contract Terms: Specific terms and conditions of the partnership


agreement.
 Transaction History: Record of past financial transactions.

Roles:

 Creates (Artist) --> (Song/Album): An artist creates one or more


songs/albums.
 Performed by (Artist) <--> (Song/Album): A song/album can be performed by
one or more artists, and an artist can perform on multiple songs/albums
 Includes (Playlist) --> (Song/Album): A playlist includes one or more
songs/albums.
 Listens to (Subscriber) --> (Song/Album, Podcast): A subscriber listens to
one or more songs/albums and podcasts
 Has (Subscriber) --> (Subscription): A subscriber has one subscription plan.
 Involved in (Artist/Label) --> (Contract): An artist or label can be involved in
one or more contracts.
 Grants (Contract) --> (License): A contract grants one or more licenses.
 Targets (Campaign) --> (Subscriber): A campaign targets one or more
subscribers.
 Features (Podcast) --> (Episode): A podcast features one or more episodes.
 Generates (User) --> (Performance Data): A user generates performance
data through their activity.
 Partners with (Spotify) --> (Financial Partner): Spotify partners with one or
more financial partners.

Assumptions:
 Artist: Represents individual artists or musical groups.
 Song/Album: Represents individual songs or entire albums. It's assumed that
Spotify might differentiate between these content types within NetSuite.
 Subscriber: Represents users with active subscriptions to Spotify's services.
 Playlist: Represents curated playlists available on Spotify only and not user
created playlists.
 Contract: Represents various agreements between Spotify and other entities,
such as artists, labels, or rights holders.
 License: Represents specific permissions granted through contracts for using
musical content.
 Campaign: Represents marketing campaigns targeting Spotify users.
 Podcast: Represents audio programs similar to radio shows, but delivered
through the internet.
 User: Represents any individual who interacts with the Spotify platform,
including subscribers and non-subscribers.
 Performance Data (aggregated): Represents collected data on user activity
and content performance, potentially aggregated over specific periods.
 Financial Partner: Represents entities that Spotify partners with for financial
transactions (e.g., payment processors, banks).
 Creates: An artist can only create original content, and duplicate entries are
not allowed.
 Performed by: This relationship is many-to-many because an artist can
perform on multiple songs/albums, and a song/album can involve multiple
artists.
 Includes: A playlist can only include existing songs or albums, and duplicate
entries within a playlist are not allowed.
 Listens to: This relationship is many-to-many because a subscriber can listen
to various songs/albums and podcasts, and individual content can be
accessed by multiple subscribers.
 Has: A subscriber can only have one active subscription plan at a time.
 Involved in: This relationship is many-to-many because an artist/label can be
involved in multiple contracts, and a contract can involve multiple
artists/labels.
 Grants: A contract can grant multiple licenses for different purposes or
territories.
 Targets: A campaign can target specific segments of users based on various
criteria.
 Features: A podcast can feature multiple episodes throughout its existence.
 Generates: User activity and content performance data are continuously
generated and aggregated over time.
 Partners with: Spotify partners with various financial partners for different
purposes.
Normalized table structures

Table: Artist
ArtistID Streaming
(PK) Name time Contracts Location

Table: Song/Album
SongID Release
(PK) Date Title Genre Duration Streaming time

Table:Playlist

PlaylistID Creation
(PK) Title Genre date Streaming time

Table:Song-Playlist

PlaylistID
(PK) SongID (PK)

Table: Artist_Song_Album
ArtistI
D SongID/
(PK) AlbumID (PK)

Table: User
UserID Contact
(PK) Name/Username Location Age Gender Number

Table: User-subscription
SubscriptionID
UserID (PK) (PK)
Table: Subscription

SubscriptionID Payment
(PK) Type method Price

Table: Contract
ContractID
(PK) Duration Type

Table:Contract-Artist
ContractI ArtistID
D (PK) (PK)

Table:Financial partner
FinancialPartnerI Type of Duratio
D (PK) partnership n

Table:Financial partners contracts


FinancialPartnerI
D (PK) ContractID (PK)

Table: License
LicenseID
(PK) Type Term Fee

Table: License_Contract

LicenseID ContractID
(PK) (PK)

Table: User_performance_data
UserID Streaming
(PK) time

Table:User-Genre

UserID
(PK) Genre

Table:User-FavouriteSongs

UserID (PK) Favourite songs

Table:User-FavouriteArtist

Favourite
UserID (PK) artists

Table: Podcast

PodcastID Streaming
(PK) Title Genre time

Table: Podcast-Episode

EpisodeI PodcastI
D (PK) D (PK)

Table:Episode
EpisodeID Duratio
(PK) Title n
THANK YOU

You might also like