match
51 rows where home_team_id = 111 sorted by date descending
This data as json, CSV (advanced)
Suggested facets: away_team_id, home_score, away_score, result, round_stage, venue, city, country, is_neutral, created_at, date (date), created_at (date), updated_at (date)
| match_id | season_id | date ▲ | kickoff | home_team_id | away_team_id | home_score | away_score | result | round_stage | matchday | venue | city | country | referee | attendance | is_neutral | is_postponed | is_cancelled | created_at | updated_at | created_by_run_id | updated_by_run_id | source_id | source_raw_key |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 48775 | 2025 1907 | 2025-10-12 | Djibouti 111 | Sierra Leone 119 | 1 | 2 | A | FIFA World Cup qualification | Casablanca | Casablanca | Morocco | 1 | 0 | 0 | 2026-06-07 06:59:02 | 2026-06-07 21:04:11.521406 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:48775 | ||||
| 48686 | 2025 1907 | 2025-10-08 | Djibouti 111 | Egypt 42 | 0 | 3 | A | FIFA World Cup qualification | Casablanca | Casablanca | Morocco | 1 | 0 | 0 | 2026-06-07 06:59:02 | 2026-06-07 21:04:11.478104 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:48686 | ||||
| 48562 | 2025 1907 | 2025-09-05 | Djibouti 111 | Burkina Faso 159 | 0 | 6 | A | FIFA World Cup qualification | Bissau | Bissau | Guinea-Bissau | 1 | 0 | 0 | 2026-06-07 06:59:02 | 2026-06-07 21:04:11.417344 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:48562 | ||||
| 47297 | 2024 1886 | 2024-06-09 | Djibouti 111 | Ethiopia 112 | 1 | 1 | D | FIFA World Cup qualification | El Jadida | El Jadida | Morocco | 1 | 0 | 0 | 2026-06-07 06:59:01 | 2026-06-07 21:04:10.730186 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:47297 | ||||
| 47014 | 2024 1880 | 2024-03-20 | Djibouti 111 | Liberia 169 | 0 | 2 | A | African Cup of Nations qualification | Marrakech | Marrakech | Morocco | 1 | 0 | 0 | 2026-06-07 06:59:01 | 2026-06-07 21:04:10.592741 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:47014 | ||||
| 46768 | 2023 1872 | 2023-11-20 | Djibouti 111 | Guinea-Bissau 137 | 0 | 1 | A | FIFA World Cup qualification | Cairo | Cairo | Egypt | 1 | 0 | 0 | 2026-06-07 06:59:01 | 2026-06-07 21:04:10.419180 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:46768 | ||||
| 46114 | 2023 1862 | 2023-06-17 | Djibouti 111 | Pakistan 129 | 3 | 1 | H | Mauritius Four Nations Cup | Saint Pierre | Saint Pierre | Mauritius | 1 | 0 | 0 | 2026-06-07 06:59:00 | 2026-06-07 21:04:10.101156 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:46114 | ||||
| 44969 | 2022 1835 | 2022-03-23 | Djibouti 111 | South Sudan 295 | 2 | 4 | A | African Cup of Nations qualification | Alexandria | Alexandria | Egypt | 1 | 0 | 0 | 2026-06-07 06:59:00 | 2026-06-07 21:04:09.416897 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:44969 | ||||
| 44663 | 2021 1813 | 2021-11-12 | Djibouti 111 | Algeria 173 | 0 | 4 | A | FIFA World Cup qualification | Cairo | Cairo | Egypt | 1 | 0 | 0 | 2026-06-07 06:58:59 | 2026-06-07 21:04:09.268370 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:44663 | ||||
| 44513 | 2021 1813 | 2021-10-08 | Djibouti 111 | Burkina Faso 159 | 0 | 4 | A | FIFA World Cup qualification | Marrakech | Marrakech | Morocco | 1 | 0 | 0 | 2026-06-07 06:58:59 | 2026-06-07 21:04:09.195118 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:44513 | ||||
| 44399 | 2021 1813 | 2021-09-06 | Djibouti 111 | Niger 171 | 2 | 4 | A | FIFA World Cup qualification | Rabat | Rabat | Morocco | 1 | 0 | 0 | 2026-06-07 06:58:59 | 2026-06-07 21:04:09.139642 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:44399 | ||||
| 44140 | 2021 1812 | 2021-06-15 | Djibouti 111 | Somalia 178 | 1 | 0 | H | Friendly | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:59 | 2026-06-07 21:04:09.013740 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:44140 | ||||
| 42997 | 2019 1787 | 2019-10-09 | Djibouti 111 | Gambia 133 | 1 | 1 | D | African Cup of Nations qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:58 | 2026-06-07 21:04:08.349145 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:42997 | ||||
| 42816 | 2019 1793 | 2019-09-04 | Djibouti 111 | Eswatini 188 | 2 | 1 | H | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:58 | 2026-06-07 21:04:08.256846 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:42816 | ||||
| 40454 | 2017 1746 | 2017-03-22 | Djibouti 111 | South Sudan 295 | 2 | 0 | H | African Cup of Nations qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:57 | 2026-06-07 21:04:06.927012 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:40454 | ||||
| 39757 | 2016 1723 | 2016-06-03 | Djibouti 111 | Tunisia 152 | 0 | 3 | A | African Cup of Nations qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:56 | 2026-06-07 21:04:06.532312 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:39757 | ||||
| 39503 | 2016 1723 | 2016-03-24 | Djibouti 111 | Liberia 169 | 0 | 1 | A | African Cup of Nations qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:56 | 2026-06-07 21:04:06.380828 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:39503 | ||||
| 39421 | 2015 1716 | 2015-11-27 | Djibouti 111 | Sudan 150 | 0 | 4 | A | CECAFA Cup | Bahir Dar | Bahir Dar | Ethiopia | 1 | 0 | 0 | 2026-06-07 06:58:56 | 2026-06-07 21:04:06.340930 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:39421 | ||||
| 39174 | 2015 1700 | 2015-10-09 | Djibouti 111 | Eswatini 188 | 0 | 6 | A | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:56 | 2026-06-07 21:04:06.220777 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:39174 | ||||
| 39018 | 2015 1709 | 2015-09-04 | Djibouti 111 | Togo 148 | 0 | 2 | A | African Cup of Nations qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:56 | 2026-06-07 21:04:06.145007 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:39018 | ||||
| 35395 | 2011 1613 | 2011-11-11 | Djibouti 111 | Namibia 231 | 0 | 4 | A | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:53 | 2026-06-07 21:04:04.142528 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:35395 | ||||
| 33551 | 2009 1555 | 2009-12-04 | Djibouti 111 | Zambia 103 | 0 | 6 | A | CECAFA Cup | Nairobi | Nairobi | Kenya | 1 | 0 | 0 | 2026-06-07 06:58:52 | 2026-06-07 21:04:03.104872 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:33551 | ||||
| 32670 | 2009 1555 | 2009-01-04 | Djibouti 111 | Sudan 150 | 1 | 1 | D | CECAFA Cup | Jinja | Jinja | Uganda | 1 | 0 | 0 | 2026-06-07 06:58:52 | 2026-06-07 21:04:02.617276 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:32670 | ||||
| 32665 | 2009 1555 | 2009-01-02 | Djibouti 111 | Burundi 139 | 0 | 4 | A | CECAFA Cup | Jinja | Jinja | Uganda | 1 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:02.614761 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:32665 | ||||
| 32652 | 2008 1529 | 2008-12-23 | Djibouti 111 | Somalia 178 | 2 | 3 | A | Friendly | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:02.608234 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:32652 | ||||
| 32277 | 2008 1532 | 2008-09-05 | Djibouti 111 | Malawi 154 | 0 | 3 | A | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:02.419175 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:32277 | ||||
| 32014 | 2008 1532 | 2008-06-13 | Djibouti 111 | DR Congo 113 | 0 | 6 | A | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:02.290422 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:32014 | ||||
| 31954 | 2008 1532 | 2008-06-06 | Djibouti 111 | Egypt 42 | 0 | 4 | A | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:02.207486 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:31954 | ||||
| 31537 | 2007 1527 | 2007-12-13 | Djibouti 111 | Rwanda 207 | 0 | 9 | A | CECAFA Cup | Dar es Salaam | Dar es Salaam | Tanzania | 1 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:01.971205 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:31537 | ||||
| 31532 | 2007 1527 | 2007-12-11 | Djibouti 111 | Eritrea 243 | 2 | 3 | A | CECAFA Cup | Dar es Salaam | Dar es Salaam | Tanzania | 1 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:01.968682 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:31532 | ||||
| 31428 | 2007 1524 | 2007-11-16 | Djibouti 111 | Somalia 178 | 1 | 0 | H | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:51 | 2026-06-07 21:04:01.916279 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:31428 | ||||
| 30555 | 2006 1500 | 2006-12-17 | Djibouti 111 | Comoros 213 | 2 | 4 | A | Arab Cup qualification | Sana'a | Sana'a | Yemen | 1 | 0 | 0 | 2026-06-07 06:58:50 | 2026-06-07 21:04:01.436905 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:30555 | ||||
| 30523 | 2006 1499 | 2006-11-26 | Djibouti 111 | Malawi 154 | 0 | 3 | A | CECAFA Cup | Addis Ababa | Addis Ababa | Ethiopia | 1 | 0 | 0 | 2026-06-07 06:58:50 | 2026-06-07 21:04:01.421287 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:30523 | ||||
| 29685 | 2005 1475 | 2005-12-05 | Djibouti 111 | Sudan 150 | 0 | 4 | A | CECAFA Cup | Kigali | Kigali | Rwanda | 1 | 0 | 0 | 2026-06-07 06:58:50 | 2026-06-07 21:04:00.960050 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:29685 | ||||
| 29678 | 2005 1475 | 2005-12-03 | Djibouti 111 | Ethiopia 112 | 0 | 6 | A | CECAFA Cup | Kigali | Kigali | Rwanda | 1 | 0 | 0 | 2026-06-07 06:58:50 | 2026-06-07 21:04:00.956649 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:29678 | ||||
| 29670 | 2005 1475 | 2005-11-30 | Djibouti 111 | Uganda 69 | 1 | 6 | A | CECAFA Cup | Kigali | Kigali | Rwanda | 1 | 0 | 0 | 2026-06-07 06:58:50 | 2026-06-07 21:04:00.952765 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:29670 | ||||
| 29664 | 2005 1475 | 2005-11-27 | Djibouti 111 | Somalia 178 | 1 | 2 | A | CECAFA Cup | Kigali | Kigali | Rwanda | 1 | 0 | 0 | 2026-06-07 06:58:50 | 2026-06-07 21:04:00.949801 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:29664 | ||||
| 25081 | 2000 1358 | 2000-11-23 | Djibouti 111 | Burundi 139 | 2 | 4 | A | CECAFA Cup | Kampala | Kampala | Uganda | 1 | 0 | 0 | 2026-06-07 06:58:47 | 2026-06-07 21:03:58.447085 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:25081 | ||||
| 25074 | 2000 1358 | 2000-11-19 | Djibouti 111 | Somalia 178 | 0 | 0 | D | CECAFA Cup | Kampala | Kampala | Uganda | 1 | 0 | 0 | 2026-06-07 06:58:47 | 2026-06-07 21:03:58.443688 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:25074 | ||||
| 24691 | 2000 1353 | 2000-06-30 | Djibouti 111 | Burundi 139 | 1 | 3 | A | African Cup of Nations qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:46 | 2026-06-07 21:03:58.200978 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:24691 | ||||
| 24357 | 2000 1340 | 2000-04-07 | Djibouti 111 | DR Congo 113 | 1 | 1 | D | FIFA World Cup qualification | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:46 | 2026-06-07 21:03:58.032248 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:24357 | ||||
| 16014 | 1988 1021 | 1988-02-25 | Djibouti 111 | Yemen DPR 195 | 4 | 1 | H | Friendly | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:41 | 2026-06-07 21:03:53.415205 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:16014 | ||||
| 15326 | 1986 975 | 1986-06-03 | Djibouti 111 | Ethiopia 112 | 0 | 2 | A | Friendly | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:40 | 2026-06-07 21:03:53.006476 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:15326 | ||||
| 15232 | 1986 975 | 1986-03-18 | Djibouti 111 | Ethiopia 112 | 1 | 1 | D | Friendly | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:40 | 2026-06-07 21:03:52.960692 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:15232 | ||||
| 15225 | 1986 975 | 1986-03-14 | Djibouti 111 | Ethiopia 112 | 1 | 5 | A | Friendly | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:40 | 2026-06-07 21:03:52.957289 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:15225 | ||||
| 14152 | 1984 930 | 1984-06-07 | Djibouti 111 | Zimbabwe 102 | 1 | 3 | A | Friendly | Addis Ababa | Addis Ababa | Ethiopia | 1 | 0 | 0 | 2026-06-07 06:58:39 | 2026-06-07 21:03:52.386633 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:14152 | ||||
| 14091 | 1984 930 | 1984-03-23 | Djibouti 111 | Ethiopia 112 | 0 | 2 | A | Friendly | Djibouti | Djibouti | Djibouti | 0 | 0 | 0 | 2026-06-07 06:58:39 | 2026-06-07 21:03:52.356930 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:14091 | ||||
| 3950 | 1954 401 | 1954-06-02 | Djibouti 111 | Ethiopia 112 | 1 | 2 | A | Friendly | Djibouti | Djibouti | French Somaliland | 0 | 0 | 0 | 2026-06-07 06:58:33 | 2026-06-07 21:03:46.675060 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:3949 | ||||
| 3948 | 1954 401 | 1954-06-01 | Djibouti 111 | Ethiopia 112 | 0 | 2 | A | Friendly | Djibouti | Djibouti | French Somaliland | 0 | 0 | 0 | 2026-06-07 06:58:33 | 2026-06-07 21:03:46.674086 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:3947 | ||||
| 3109 | 1948 351 | 1948-06-01 | Djibouti 111 | Ethiopia 112 | 1 | 2 | A | Friendly | Djibouti | Djibouti | French Somaliland | 0 | 0 | 0 | 2026-06-07 06:58:32 | 2026-06-07 21:03:46.264634 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:3108 | ||||
| 3031 | 1947 341 | 1947-12-05 | Djibouti 111 | Ethiopia 112 | 0 | 5 | A | Friendly | Djibouti | Djibouti | French Somaliland | 0 | 0 | 0 | 2026-06-07 06:58:32 | 2026-06-07 21:03:46.226760 | 1 1 | 6 6 | International Results CSV 1 | csv:///home/nabaz/Projects/world-cup-2026-predictor/data/raw/international_results.csv:3030 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE match (
match_id INTEGER NOT NULL,
season_id INTEGER NOT NULL,
date DATE NOT NULL,
kickoff DATETIME,
home_team_id INTEGER NOT NULL,
away_team_id INTEGER NOT NULL,
home_score INTEGER,
away_score INTEGER,
result VARCHAR(1),
round_stage VARCHAR(64),
matchday INTEGER,
venue VARCHAR(256),
city VARCHAR(128),
country VARCHAR(128),
referee VARCHAR(128),
attendance INTEGER,
is_neutral BOOLEAN NOT NULL,
is_postponed BOOLEAN NOT NULL,
is_cancelled BOOLEAN NOT NULL,
created_at DATETIME NOT NULL,
updated_at DATETIME NOT NULL,
created_by_run_id INTEGER,
updated_by_run_id INTEGER,
source_id INTEGER,
source_raw_key VARCHAR(512),
CONSTRAINT pk_match PRIMARY KEY (match_id),
CONSTRAINT fk_match_season FOREIGN KEY(season_id) REFERENCES season (season_id),
CONSTRAINT fk_match_home_team FOREIGN KEY(home_team_id) REFERENCES team (team_id),
CONSTRAINT fk_match_away_team FOREIGN KEY(away_team_id) REFERENCES team (team_id),
CONSTRAINT fk_match_source FOREIGN KEY(source_id) REFERENCES data_source (source_id),
CONSTRAINT fk_match_created_by_run FOREIGN KEY(created_by_run_id) REFERENCES ingestion_run (run_id),
CONSTRAINT fk_match_updated_by_run FOREIGN KEY(updated_by_run_id) REFERENCES ingestion_run (run_id)
);
CREATE INDEX ix_match_away_team_id ON match (away_team_id);
CREATE INDEX ix_match_created_by_run_id ON match (created_by_run_id);
CREATE INDEX ix_match_source_id ON match (source_id);
CREATE INDEX ix_match_updated_by_run_id ON match (updated_by_run_id);
CREATE INDEX ix_match_date ON match (date);
CREATE INDEX ix_match_season_id ON match (season_id);
CREATE INDEX ix_match_source_raw_key ON match (source_raw_key);
CREATE INDEX ix_match_home_team_id ON match (home_team_id);
CREATE UNIQUE INDEX ux_match_season_date_teams ON match(season_id, date, home_team_id, away_team_id);