-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.txt
134 lines (125 loc) · 1.96 KB
/
schema.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Artist(
artist_id PK
artist_active_year_begin
artist_active_year_end
artist_associated_labels
artist_bio
artist_comments
artist_contact
artist_date_created
artist_donation_url
artist_favorites
artist_flattr_name
artist_handle
artist_image_file
artist_images
artist_latitude
artist_location
artist_longitude
artist_members
artist_name
artist_paypal_name
artist_related_projects
artist_url
artist_website
artist_wikipedia_page
tags)
Album(
album_id PK
album_comments
album_date_created
album_date_released
album_engineer
album_favorites
album_handle
album_image_file
album_images
album_information
album_listens
album_producer
album_title
album_tracks
album_type
album_url
artist_name
artist_url
tags)
Track(
track_id PK
album_id FK references Album(album_id)
album_title
album_url
artist_id FK references Artist(artist_id)
artist_name
artist_url
artist_website
license_image_file
license_image_file_large
license_parent_id
license_title
license_url
tags
track_bit_rate
track_comments
track_composer
track_copyright_c
track_copyright_p
track_date_created
track_date_recorded
track_disc_number
track_duration
track_explicit
track_explicit_notes
track_favorites
track_file
track_genres
track_image_file
track_information
track_instrumental
track_interest
track_language_code
track_listens
track_lyricist
track_number
track_publisher
track_title
track_url)
Genre(
genre_id PK
#tracks
parent
title
top_level)
User(
user_name PK
password
email_address
is_activated
is_verified
is_admin)
Playlist(
playlist_id PK
playlist_name
running_time
last_modified_datetime (time and date)
description_text (can be null)
is_private (DEFAULT True)
average_rating
PlaylistUsers(
playlist_id PK
username PK
)
Review(
review_id
user_id
review_out_of_ten (.1 precision float)
comment_text
is_hidden
)
PlaylistTrack(
playlist_id FK references Playlist(playlist_id) CPK
track_id) FK references Track(track_id) CPK
PlaylistReview(
playlist_id FK references Playlist(playlist_id) CPK
review_id FK references Review(review_id) CPK
)