File tree 8 files changed +38
-36
lines changed
config/databases/movies/tables
8 files changed +38
-36
lines changed Original file line number Diff line number Diff line change 35
35
36
36
background-color : #FFF ;
37
37
38
+ line-height : 1.2 ;
39
+
38
40
& :before {
39
41
position : absolute ;
40
42
top : 50% ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " actors" ,
3
- "description" : " " ,
3
+ "description" : " This table contains movie actors. " ,
4
4
"schemaColor" : " #91C4F2" ,
5
5
"columns" : [
6
6
{
7
7
"name" : " id" ,
8
- "description" : " " ,
8
+ "description" : " Unique identifier for each actor. " ,
9
9
"type" : " bigint"
10
10
},
11
11
{
12
12
"name" : " name" ,
13
- "description" : " " ,
13
+ "description" : " Full name of the actor. " ,
14
14
"type" : " text"
15
15
}
16
16
]
17
- }
17
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " actors_movies" ,
3
- "description" : " " ,
3
+ "description" : " This is a join table between actors and movies, since they have many-to-many relationship. " ,
4
4
"schemaColor" : " #91C4F2" ,
5
5
"columns" : [
6
6
{
7
7
"name" : " actor_id" ,
8
- "description" : " " ,
8
+ "description" : " Unique identifier of an actor from the `actors` table. " ,
9
9
"type" : " bigint"
10
10
},
11
11
{
12
12
"name" : " movie_id" ,
13
- "description" : " " ,
13
+ "description" : " Unique identifier of a movie from the `movies` table. " ,
14
14
"type" : " bigint"
15
15
}
16
16
]
17
- }
17
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " directors" ,
3
- "description" : " " ,
3
+ "description" : " This table contains movie directors. " ,
4
4
"schemaColor" : " #91C4F2" ,
5
5
"columns" : [
6
6
{
7
7
"name" : " id" ,
8
- "description" : " " ,
8
+ "description" : " Unique identifier for each director. " ,
9
9
"type" : " bigint"
10
10
},
11
11
{
12
12
"name" : " name" ,
13
- "description" : " " ,
13
+ "description" : " Full name of the director. " ,
14
14
"type" : " text"
15
15
}
16
16
]
17
- }
17
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " genres" ,
3
- "description" : " " ,
3
+ "description" : " This table contains movie genres. " ,
4
4
"schemaColor" : " #91C4F2" ,
5
5
"columns" : [
6
6
{
7
7
"name" : " id" ,
8
- "description" : " " ,
8
+ "description" : " Unique identifier for each genre. " ,
9
9
"type" : " bigint"
10
10
},
11
11
{
12
12
"name" : " name" ,
13
- "description" : " " ,
13
+ "description" : " Name of the movie genre. " ,
14
14
"type" : " text"
15
15
}
16
16
]
17
- }
17
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " genres_movies" ,
3
- "description" : " " ,
3
+ "description" : " This is an association (aka join aka many-to-many relationship) table between genres and movies. " ,
4
4
"schemaColor" : " #91C4F2" ,
5
5
"columns" : [
6
6
{
7
7
"name" : " genre_id" ,
8
- "description" : " " ,
8
+ "description" : " Genre's ID from the `genres` table. " ,
9
9
"type" : " bigint"
10
10
},
11
11
{
12
12
"name" : " movie_id" ,
13
- "description" : " " ,
13
+ "description" : " Movie's ID from the `movies` table. " ,
14
14
"type" : " bigint"
15
15
}
16
16
]
17
- }
17
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " movies" ,
3
- "description" : " " ,
3
+ "description" : " This table contains all dataset movies. " ,
4
4
"schemaColor" : " #91C4F2" ,
5
5
"columns" : [
6
6
{
7
7
"name" : " id" ,
8
- "description" : " " ,
8
+ "description" : " Unique identifier for each movie. " ,
9
9
"type" : " bigint"
10
10
},
11
11
{
12
12
"name" : " release_date" ,
13
- "description" : " " ,
13
+ "description" : " Release date of the movie. " ,
14
14
"type" : " date"
15
15
},
16
16
{
17
17
"name" : " duration" ,
18
- "description" : " " ,
18
+ "description" : " Total runtime of the movie in minutes. " ,
19
19
"type" : " integer"
20
20
},
21
21
{
22
22
"name" : " budget" ,
23
- "description" : " " ,
23
+ "description" : " Total budget allocated for the movie in US dollars. " ,
24
24
"type" : " bigint"
25
25
},
26
26
{
27
27
"name" : " revenue" ,
28
- "description" : " " ,
28
+ "description" : " Total revenue earned by the movie in US dollars. " ,
29
29
"type" : " bigint"
30
30
},
31
31
{
32
32
"name" : " director_id" ,
33
- "description" : " " ,
33
+ "description" : " Director's ID from the `director` table linking the director to the movie. " ,
34
34
"type" : " bigint"
35
35
},
36
36
{
37
37
"name" : " name" ,
38
- "description" : " " ,
38
+ "description" : " Official title of the movie. " ,
39
39
"type" : " text"
40
40
},
41
41
{
42
42
"name" : " imdb_slug" ,
43
- "description" : " " ,
43
+ "description" : " Unique IMDb URL slug for the movie. " ,
44
44
"type" : " text"
45
45
}
46
46
]
47
- }
47
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ratings" ,
3
- "description" : " " ,
3
+ "description" : " This table contains individual user ratings for all movies. " ,
4
4
"schemaColor" : " #91C4F2" ,
5
5
"columns" : [
6
6
{
7
7
"name" : " movie_id" ,
8
- "description" : " " ,
8
+ "description" : " Movie's ID from the `movies` table. " ,
9
9
"type" : " bigint"
10
10
},
11
11
{
12
12
"name" : " user_id" ,
13
- "description" : " " ,
13
+ "description" : " ID of the user who gave the rating. " ,
14
14
"type" : " integer"
15
15
},
16
16
{
17
17
"name" : " rating" ,
18
- "description" : " " ,
18
+ "description" : " Rating score assigned to the movie. " ,
19
19
"type" : " integer"
20
20
},
21
21
{
22
22
"name" : " created_at" ,
23
- "description" : " " ,
23
+ "description" : " Timestamp when the rating was created. " ,
24
24
"type" : " timestamp"
25
25
}
26
26
]
27
- }
27
+ }
You can’t perform that action at this time.
0 commit comments