0% found this document useful (0 votes)
5 views2 pages

Relational Model

The document outlines a database schema for a music-related application, detailing entities such as Users, Playlists, Artists, Albums, Record Labels, Songs, Tours, and Tour Bookings. Each entity includes various attributes, such as user information, playlist details, artist names, album specifics, and tour schedules. The schema is designed to manage relationships between these entities effectively.

Uploaded by

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

Relational Model

The document outlines a database schema for a music-related application, detailing entities such as Users, Playlists, Artists, Albums, Record Labels, Songs, Tours, and Tour Bookings. Each entity includes various attributes, such as user information, playlist details, artist names, album specifics, and tour schedules. The schema is designed to manage relationships between these entities effectively.

Uploaded by

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

Playlists

Users 0..1
playlist_id VARCHAR(255)
0..1
user_id VARCHAR(255) playlist_name VARCHAR(255)

user_name VARCHAR(255) creation_date TIMESTAMP

email VARCHAR(255) *
user_id VARCHAR(255)

password_hash VARCHAR(255) description TEXT

pfp_url VARCHAR(255) Artists cover_url VARCHAR(255)


0..1 0..1
created_at TIMESTAMP artist_id VARCHAR(255) public BOOLEAN

offline_songs TEXT artist_name VARCHAR(255)


*
premium BOOLEAN record_label_id VARCHAR(255)

RecordLabels
0..1 0..1
record_label_id VARCHAR(255)

record_label_name VARCHAR(255)

Albums PlaylistContent
Genres
0..1
album_id VARCHAR(255) playlist_content_id VARCHAR(255) 0..1
genre_id VARCHAR(255)
*
album_name VARCHAR(255) playlist_id VARCHAR(255)
genre_name VARCHAR(100)
*
release_date TIMESTAMP song_id VARCHAR(255)

cover_url VARCHAR(255)
*
artist_id VARCHAR(255)
* Songs
record_label_id VARCHAR(255)
0..1
album_type VARCHAR(100) song_id VARCHAR(255)

title VARCHAR(255)

duration VARCHAR(255)

language VARCHAR(100)

rating VARCHAR(10)

is_single BOOLEAN
*
Tours album_id VARCHAR(255)

0..1 music_video_url VARCHAR(255)


tour_id VARCHAR(255)
TourBooking *
tour_name VARCHAR(255) genre VARCHAR(100)
booking_id VARCHAR(255) *
tour_start_date TIMESTAMP artist_id VARCHAR(255)
*
tour_id VARCHAR(255)
tour_end_date TIMESTAMP file_url VARCHAR(255)
*
user_id VARCHAR(255)
tour_location VARCHAR(255) release_date TIMESTAMP

stream_count BIGINT
Playlists

Users 0..1
playlist_id VARCHAR(255)
0..1
user_id VARCHAR(255) playlist_name VARCHAR(255)

user_name VARCHAR(255) creation_date TIMESTAMP

email VARCHAR(255) *
user_id VARCHAR(255)

password_hash VARCHAR(255) description TEXT

pfp_url VARCHAR(255) Artists cover_url VARCHAR(255)


0..1 0..1
created_at TIMESTAMP artist_id VARCHAR(255) public BOOLEAN

offline_songs TEXT artist_name VARCHAR(255)


*
premium BOOLEAN record_label_id VARCHAR(255)

RecordLabels
0..1 0..1
record_label_id VARCHAR(255)

record_label_name VARCHAR(255)

Albums PlaylistContent
Genres
0..1
album_id VARCHAR(255) playlist_content_id VARCHAR(255) 0..1
genre_id VARCHAR(255)
*
album_name VARCHAR(255) playlist_id VARCHAR(255)
genre_name VARCHAR(100)
*
release_date TIMESTAMP song_id VARCHAR(255)

cover_url VARCHAR(255)
*
artist_id VARCHAR(255)
* Songs
record_label_id VARCHAR(255)
0..1
album_type VARCHAR(100) song_id VARCHAR(255)

title VARCHAR(255)

duration VARCHAR(255)

language VARCHAR(100)

rating VARCHAR(10)

is_single BOOLEAN
*
Tours album_id VARCHAR(255)

0..1 music_video_url VARCHAR(255)


tour_id VARCHAR(255)
TourBooking *
tour_name VARCHAR(255) genre VARCHAR(100)
booking_id VARCHAR(255) *
tour_start_date TIMESTAMP artist_id VARCHAR(255)
*
tour_id VARCHAR(255)
tour_end_date TIMESTAMP file_url VARCHAR(255)
*
user_id VARCHAR(255)
tour_location VARCHAR(255) release_date TIMESTAMP

stream_count BIGINT

You might also like