Skip to content

Commit d2cc977

Browse files
committed
Added column and table descriptions for NBA dataset
1 parent 78059d1 commit d2cc977

5 files changed

Lines changed: 60 additions & 60 deletions

File tree

src/config/databases/nba/tables/games.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
{
22
"name": "games",
3-
"description": "",
3+
"description": "This table contains all NBA games since NBA was found in 1949.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "id",
88
"key": true,
9-
"description": "",
9+
"description": "Unique identifier of an NBA game.",
1010
"type": "bigint"
1111
},
1212
{
1313
"name": "game_date",
14-
"description": "",
14+
"description": "When the game was played (calculated with EST time).",
1515
"type": "date"
1616
},
1717
{
1818
"name": "season",
19-
"description": "",
19+
"description": "A year of a NBA season.",
2020
"type": "integer"
2121
},
2222
{
2323
"name": "home_team_id",
24-
"description": "",
24+
"description": "An ID of a team that played on their home court.",
2525
"type": "bigint"
2626
},
2727
{
2828
"name": "visitor_team_id",
29-
"description": "",
29+
"description": "An ID of a visiting team.",
3030
"type": "bigint"
3131
},
3232
{
3333
"name": "game_type",
34-
"description": "",
34+
"description": "Type of a game depending on when it was played during a season. Possible values are **preseason**, **regular**, **allstar**, **playin** or **playoff**.",
3535
"type": "text"
3636
},
3737
{
3838
"name": "home_team_points",
39-
"description": "",
39+
"description": "How many points a home team scored.",
4040
"type": "integer"
4141
},
4242
{
4343
"name": "visitor_team_points",
44-
"description": "",
44+
"description": "How many points a visiting team scored.",
4545
"type": "integer"
4646
}
4747
]
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,102 @@
11
{
22
"name": "player_game_stats",
3-
"description": "",
3+
"description": "This table contains player stats for individual games.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "game_id",
8-
"description": "",
8+
"description": "An ID of a game.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "team_id",
13-
"description": "",
13+
"description": "An ID of a team.",
1414
"type": "bigint"
1515
},
1616
{
1717
"name": "player_id",
18-
"description": "",
18+
"description": "An ID of a player.",
1919
"type": "bigint"
2020
},
2121
{
2222
"name": "min",
23-
"description": "",
23+
"description": "How many minutes a player was in the game.",
2424
"type": "integer"
2525
},
2626
{
2727
"name": "fgm",
28-
"description": "",
28+
"description": "A number of goals made by a player.",
2929
"type": "integer"
3030
},
3131
{
3232
"name": "fga",
33-
"description": "",
33+
"description": "A number of goals attempted (shots made) by a player.",
3434
"type": "integer"
3535
},
3636
{
3737
"name": "fg3m",
38-
"description": "",
38+
"description": "A number of 3-pointers made by a player.",
3939
"type": "integer"
4040
},
4141
{
4242
"name": "fg3a",
43-
"description": "",
43+
"description": "A number of attempted 3-point shots by a player.",
4444
"type": "integer"
4545
},
4646
{
4747
"name": "ftm",
48-
"description": "",
48+
"description": "A number of Free Throws made by a player.",
4949
"type": "integer"
5050
},
5151
{
5252
"name": "fta",
53-
"description": "",
53+
"description": "A number of Free Throws attempted by a player.",
5454
"type": "integer"
5555
},
5656
{
5757
"name": "oreb",
58-
"description": "",
58+
"description": "Number of offensive rebounds by a player.",
5959
"type": "integer"
6060
},
6161
{
6262
"name": "dreb",
63-
"description": "",
63+
"description": "Number of defensive rebounds by a player.",
6464
"type": "integer"
6565
},
6666
{
6767
"name": "reb",
68-
"description": "",
68+
"description": "Total number of rebounds by a player.",
6969
"type": "integer"
7070
},
7171
{
7272
"name": "ast",
73-
"description": "",
73+
"description": "Number of assists by a player.",
7474
"type": "integer"
7575
},
7676
{
7777
"name": "stl",
78-
"description": "",
78+
"description": "Number of steals by a player.",
7979
"type": "integer"
8080
},
8181
{
8282
"name": "blk",
83-
"description": "",
83+
"description": "Number of blocks by a player.",
8484
"type": "integer"
8585
},
8686
{
8787
"name": "to",
88-
"description": "",
88+
"description": "Number of turnovers by a player.",
8989
"type": "integer"
9090
},
9191
{
9292
"name": "pf",
93-
"description": "",
93+
"description": "Number of personal fouls made by a player.",
9494
"type": "integer"
9595
},
9696
{
9797
"name": "pts",
98-
"description": "",
98+
"description": "Number of points scored by a player.",
9999
"type": "integer"
100100
}
101101
]
102-
}
102+
}

src/config/databases/nba/tables/players.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "players",
3-
"description": "",
3+
"description": "This table contains all players who have played in at least one NBA game.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "id",
88
"key": true,
9-
"description": "",
9+
"description": "Unique identifier of an NBA player.",
1010
"type": "bigint"
1111
},
1212
{
1313
"name": "name",
14-
"description": "",
14+
"description": "Player's name.",
1515
"type": "text"
1616
}
1717
]
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,97 @@
11
{
22
"name": "team_game_stats",
3-
"description": "",
3+
"description": "This table contains team stats for individual games.",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "game_id",
8-
"description": "",
8+
"description": "An ID of a game.",
99
"type": "bigint"
1010
},
1111
{
1212
"name": "team_id",
13-
"description": "",
13+
"description": "An ID of a team.",
1414
"type": "bigint"
1515
},
1616
{
1717
"name": "pts_q1",
18-
"description": "",
18+
"description": "Number of points scored by the team in the 1st quarter.",
1919
"type": "integer"
2020
},
2121
{
2222
"name": "pts_q2",
23-
"description": "",
23+
"description": "Number of points scored by the team in the 2nd quarter.",
2424
"type": "integer"
2525
},
2626
{
2727
"name": "pts_q3",
28-
"description": "",
28+
"description": "Number of points scored by the team in the 3rd quarter.",
2929
"type": "integer"
3030
},
3131
{
3232
"name": "pts_q4",
33-
"description": "",
33+
"description": "Number of points scored by the team in the 4th quarter.",
3434
"type": "integer"
3535
},
3636
{
3737
"name": "pts_ot1",
38-
"description": "",
38+
"description": "Number of points scored by the team in the 1st overtime.",
3939
"type": "integer"
4040
},
4141
{
4242
"name": "pts_ot2",
43-
"description": "",
43+
"description": "Number of points scored by the team in the 2nd overtime.",
4444
"type": "integer"
4545
},
4646
{
4747
"name": "pts_ot3",
48-
"description": "",
48+
"description": "Number of points scored by the team in the 3rd overtime.",
4949
"type": "integer"
5050
},
5151
{
5252
"name": "pts_ot4",
53-
"description": "",
53+
"description": "Number of points scored by the team in the 4th overtime.",
5454
"type": "integer"
5555
},
5656
{
5757
"name": "pts_ot5",
58-
"description": "",
58+
"description": "Number of points scored by the team in the 5th overtime.",
5959
"type": "integer"
6060
},
6161
{
6262
"name": "pts_ot6",
63-
"description": "",
63+
"description": "Number of points scored by the team in the 6th overtime.",
6464
"type": "integer"
6565
},
6666
{
6767
"name": "fg_pct",
68-
"description": "",
68+
"description": "Team's Field Goal Percentage in a game. It's the ratio of made goals to attempted goals.",
6969
"type": "numeric"
7070
},
7171
{
7272
"name": "ft_pct",
73-
"description": "",
73+
"description": "Team's Free Throw Percentage in a game. It's the ratio of made free throws to attemtped free throws.",
7474
"type": "numeric"
7575
},
7676
{
7777
"name": "fg3_pct",
78-
"description": "",
78+
"description": "Team's Three Point Field Goal Percentage in a game. It's the ratio of made 3-pointers to the total number ",
7979
"type": "numeric"
8080
},
8181
{
8282
"name": "ast",
83-
"description": "",
83+
"description": "A number of team assists in a game.",
8484
"type": "integer"
8585
},
8686
{
8787
"name": "reb",
88-
"description": "",
88+
"description": "A number of team rebounds in a game.",
8989
"type": "integer"
9090
},
9191
{
9292
"name": "tov",
93-
"description": "",
93+
"description": "A number of team turnovers in a game.",
9494
"type": "integer"
9595
}
9696
]
97-
}
97+
}

src/config/databases/nba/tables/teams.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
{
22
"name": "teams",
3-
"description": "",
3+
"description": "This table contains all NBA teams (including dissolved or merged teams).",
44
"schemaColor": "#91C4F2",
55
"columns": [
66
{
77
"name": "id",
88
"key": true,
9-
"description": "",
9+
"description": "Unique identifier of an NBA team.",
1010
"type": "bigint"
1111
},
1212
{
1313
"name": "name",
14-
"description": "",
14+
"description": "Team's name.",
1515
"type": "text"
1616
},
1717
{
1818
"name": "nickname",
19-
"description": "",
19+
"description": "Team's nickname.",
2020
"type": "text"
2121
},
2222
{
2323
"name": "city",
24-
"description": "",
24+
"description": "Team's city.",
2525
"type": "text"
2626
},
2727
{
2828
"name": "state",
29-
"description": "",
29+
"description": "Team's state.",
3030
"type": "text"
3131
},
3232
{
3333
"name": "founding_year",
34-
"description": "",
34+
"description": "When the team was founded.",
3535
"type": "integer"
3636
}
3737
]

0 commit comments

Comments
 (0)