Skip to content

Commit

Permalink
Update SQLITE data
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjelstul committed Jul 20, 2023
1 parent d9ffaa8 commit 9a4aa49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions data-sqlite/SQL-schema.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ CREATE TABLE teams(
team_id TEXT NOT NULL,
team_name TEXT,
team_code TEXT,
mens_team BOOLEAN,
womens_team BOOLEAN,
federation_name TEXT,
region_name TEXT,
confederation_id TEXT NOT NULL,
team_wikipedia_link TEXT,
mens_team_wikipedia_link TEXT,
womens_team_wikipedia_link TEXT,
federation_wikipedia_link TEXT,
PRIMARY KEY (team_id),
FOREIGN KEY (confederation_id) REFERENCES confederations (confederation_id)
Expand All @@ -134,6 +137,7 @@ CREATE TABLE players(
family_name TEXT,
given_name TEXT,
birth_date DATE,
female BOOLEAN,
goal_keeper BOOLEAN,
defender BOOLEAN,
midfielder BOOLEAN,
Expand All @@ -150,6 +154,7 @@ CREATE TABLE managers(
manager_id TEXT NOT NULL,
family_name TEXT,
given_name TEXT,
female BOOLEAN,
country_name TEXT,
manager_wikipedia_link TEXT,
PRIMARY KEY (manager_id)
Expand All @@ -161,6 +166,7 @@ CREATE TABLE referees(
referee_id TEXT NOT NULL,
family_name TEXT,
given_name TEXT,
female BOOLEAN,
country_name TEXT,
confederation_id TEXT,
referee_wikipedia_link TEXT,
Expand Down Expand Up @@ -319,7 +325,6 @@ CREATE TABLE player_appearances(
position_code TEXT,
starter BOOLEAN,
substitute BOOLEAN,
captain BOOLEAN,
PRIMARY KEY (tournament_id, match_id, team_id, player_id),
FOREIGN KEY (tournament_id) REFERENCES tournaments (tournament_id),
FOREIGN KEY (match_id) REFERENCES matches (match_id),
Expand Down
Binary file modified data-sqlite/worldcup.db
Binary file not shown.

0 comments on commit 9a4aa49

Please sign in to comment.