-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from hechlerp/APIRequests
Add schema and optimizations for api fetcher
- Loading branch information
Showing
3 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Schema Outline | ||
|
||
|
||
#DB 1 (raw) | ||
|
||
## Champions_in_matches | ||
column name | data type | details | ||
------------|-----------|----------------------- | ||
id | integer | not null, primary key | ||
champion_id | string | not null, foreign key(references Champions) | ||
match_id | string | not null | ||
winner | boolean | | ||
team | string | not null | ||
role | string | | ||
|
||
#DB 2 (prepped) | ||
|
||
## Champions | ||
column name | data type | details | ||
-----------------|-----------|----------------------- | ||
id | integer | not null, primary key | ||
name | string | not null | ||
pick/ban rate | integer | | ||
win rate | integer | | ||
metascore | integer | | ||
top | integer | not null | ||
mid | integer | not null | ||
jungle | integer | not null | ||
marksman | integer | not null | ||
support | integer | not null | ||
|
||
image | img | not null |