Skip to content

Commit 33cfac6

Browse files
committed
Added movies dataset column descriptions
1 parent 6039f12 commit 33cfac6

File tree

8 files changed

+38
-36
lines changed

8 files changed

+38
-36
lines changed

src/Visualizer/style/column-name.scss

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
background-color: #FFF;
3737

38+
line-height: 1.2;
39+
3840
&:before {
3941
position: absolute;
4042
top: 50%;
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "actors",
3-
"description": "",
3+
"description": "This table contains movie actors.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "id",
8-
"description": "",
8+
"description": "Unique identifier for each actor.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "name",
13-
"description": "",
13+
"description": "Full name of the actor.",
1414
"type": "text"
1515
}
1616
]
17-
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "actors_movies",
3-
"description": "",
3+
"description": "This is a join table between actors and movies, since they have many-to-many relationship.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "actor_id",
8-
"description": "",
8+
"description": "Unique identifier of an actor from the `actors` table.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "movie_id",
13-
"description": "",
13+
"description": "Unique identifier of a movie from the `movies` table.",
1414
"type": "bigint"
1515
}
1616
]
17-
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "directors",
3-
"description": "",
3+
"description": "This table contains movie directors.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "id",
8-
"description": "",
8+
"description": "Unique identifier for each director.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "name",
13-
"description": "",
13+
"description": "Full name of the director.",
1414
"type": "text"
1515
}
1616
]
17-
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "genres",
3-
"description": "",
3+
"description": "This table contains movie genres.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "id",
8-
"description": "",
8+
"description": "Unique identifier for each genre.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "name",
13-
"description": "",
13+
"description": "Name of the movie genre.",
1414
"type": "text"
1515
}
1616
]
17-
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "genres_movies",
3-
"description": "",
3+
"description": "This is an association (aka join aka many-to-many relationship) table between genres and movies.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "genre_id",
8-
"description": "",
8+
"description": "Genre's ID from the `genres` table.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "movie_id",
13-
"description": "",
13+
"description": "Movie's ID from the `movies` table.",
1414
"type": "bigint"
1515
}
1616
]
17-
}
17+
}
+10-10
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
{
22
"name": "movies",
3-
"description": "",
3+
"description": "This table contains all dataset movies.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "id",
8-
"description": "",
8+
"description": "Unique identifier for each movie.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "release_date",
13-
"description": "",
13+
"description": "Release date of the movie.",
1414
"type": "date"
1515
},
1616
{
1717
"name": "duration",
18-
"description": "",
18+
"description": "Total runtime of the movie in minutes.",
1919
"type": "integer"
2020
},
2121
{
2222
"name": "budget",
23-
"description": "",
23+
"description": "Total budget allocated for the movie in US dollars.",
2424
"type": "bigint"
2525
},
2626
{
2727
"name": "revenue",
28-
"description": "",
28+
"description": "Total revenue earned by the movie in US dollars.",
2929
"type": "bigint"
3030
},
3131
{
3232
"name": "director_id",
33-
"description": "",
33+
"description": "Director's ID from the `director` table linking the director to the movie.",
3434
"type": "bigint"
3535
},
3636
{
3737
"name": "name",
38-
"description": "",
38+
"description": "Official title of the movie.",
3939
"type": "text"
4040
},
4141
{
4242
"name": "imdb_slug",
43-
"description": "",
43+
"description": "Unique IMDb URL slug for the movie.",
4444
"type": "text"
4545
}
4646
]
47-
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
22
"name": "ratings",
3-
"description": "",
3+
"description": "This table contains individual user ratings for all movies.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "movie_id",
8-
"description": "",
8+
"description": "Movie's ID from the `movies` table.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "user_id",
13-
"description": "",
13+
"description": "ID of the user who gave the rating.",
1414
"type": "integer"
1515
},
1616
{
1717
"name": "rating",
18-
"description": "",
18+
"description": "Rating score assigned to the movie.",
1919
"type": "integer"
2020
},
2121
{
2222
"name": "created_at",
23-
"description": "",
23+
"description": "Timestamp when the rating was created.",
2424
"type": "timestamp"
2525
}
2626
]
27-
}
27+
}

0 commit comments

Comments
 (0)