home / football

match

203 rows where away_team_id = 406 sorted by date descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: season_id, home_score, away_score, result, created_at, updated_at, source_id, 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
54233 2022-2023 1965 2023-05-14   Stade Rennais FC 391 Troyes 406 4 0 H   35           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54203 2022-2023 1965 2023-04-23   FC Nantes 388 Troyes 406 2 2 D   32           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54247 2022-2023 1965 2023-04-17   Angers 420 Troyes 406 2 1 H   37           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54196 2022-2023 1965 2023-04-16   Olympique de Marseille 342 Troyes 406 3 1 H   31           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54168 2022-2023 1965 2023-04-01   Auxerre 397 Troyes 406 1 0 H   29           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54153 2022-2023 1965 2023-03-12   Lorient 369 Troyes 406 2 0 H   27           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54131 2022-2023 1965 2023-02-26   Ajaccio 410 Troyes 406 2 1 H   25           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54114 2022-2023 1965 2023-02-12   Stade de Reims 384 Troyes 406 4 0 H   23           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54070 2022-2023 1965 2023-01-15   Lille OSC 344 Troyes 406 5 1 H   19           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54053 2022-2023 1965 2023-01-02   RC Strasbourg Alsace 393 Troyes 406 2 3 A   17           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54091 2022-2023 1965 2022-12-26   Toulouse FC 389 Troyes 406 4 1 H   21           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54034 2022-2023 1965 2022-11-13   Stade Brestois 29 386 Troyes 406 2 1 H   15           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54008 2022-2023 1965 2022-10-29   Paris Saint-Germain 337 Troyes 406 4 3 H   13           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53983 2022-2023 1965 2022-10-09   OGC Nice 381 Troyes 406 3 2 H   10           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53961 2022-2023 1965 2022-09-18   Clermont Foot 379 Troyes 406 1 3 A   8           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53947 2022-2023 1965 2022-09-09   Lens 371 Troyes 406 1 0 H   7           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53928 2022-2023 1965 2022-09-05   AS Monaco 387 Troyes 406 2 4 A   5           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53907 2022-2023 1965 2022-08-19   Olympique Lyonnais 343 Troyes 406 4 1 H   3           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53893 2022-2023 1965 2022-08-07   Montpellier HSC 382 Troyes 406 3 2 H   1           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
62438 2021-2022 1964 2022-05-21   Lorient 369 Troyes 406 1 1 D   38           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62420 2021-2022 1964 2022-05-08   Paris Saint-Germain 337 Troyes 406 2 2 D   36           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62400 2021-2022 1964 2022-04-24   OGC Nice 381 Troyes 406 1 0 H   34           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62369 2021-2022 1964 2022-04-10   AS Monaco 387 Troyes 406 2 1 H   31           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62343 2021-2022 1964 2022-03-18   AS Saint-Étienne 396 Troyes 406 1 1 D   29           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62327 2021-2022 1964 2022-03-06   FC Girondins de Bordeaux 404 Troyes 406 0 2 A   27           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62309 2021-2022 1964 2022-02-20   Stade Rennais FC 391 Troyes 406 4 1 H   25           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62298 2021-2022 1964 2022-02-13   Stade Brestois 29 386 Troyes 406 5 1 H   24           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62275 2021-2022 1964 2022-01-23   Angers 420 Troyes 406 2 1 H   22           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62270 2021-2022 1964 2022-01-19   Montpellier HSC 382 Troyes 406 0 1 A   20           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62223 2021-2022 1964 2021-12-04   Lille OSC 344 Troyes 406 2 1 H   17           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62211 2021-2022 1964 2021-11-28   Olympique de Marseille 342 Troyes 406 1 0 H   15           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62183 2021-2022 1964 2021-11-05   Lens 371 Troyes 406 4 0 H   12           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62168 2021-2022 1964 2021-10-24   Stade de Reims 384 Troyes 406 1 2 A   11           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62149 2021-2022 1964 2021-10-03   FC Nantes 388 Troyes 406 2 0 H   9           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62130 2021-2022 1964 2021-09-22   Olympique Lyonnais 343 Troyes 406 3 1 H   7           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62108 2021-2022 1964 2021-09-12   Metz 376 Troyes 406 0 2 A   5           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62090 2021-2022 1964 2021-08-22   RC Strasbourg Alsace 393 Troyes 406 1 1 D   3           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62078 2021-2022 1964 2021-08-15   Clermont Foot 379 Troyes 406 2 0 H   2           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
53495 2017-2018 1960 2018-05-12   Montpellier HSC 382 Troyes 406 1 1 D   37           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53481 2017-2018 1960 2018-05-06   Olympique Lyonnais 343 Troyes 406 3 0 H   36           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53467 2017-2018 1960 2018-04-22   AS Saint-Étienne 396 Troyes 406 2 1 H   34           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53443 2017-2018 1960 2018-04-07   EA Guingamp 419 Troyes 406 4 0 H   32           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53421 2017-2018 1960 2018-03-17   Amiens 409 Troyes 406 1 1 D   30           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53412 2017-2018 1960 2018-03-10   FC Nantes 388 Troyes 406 1 0 H   29           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53395 2017-2018 1960 2018-02-24   Stade Rennais FC 391 Troyes 406 2 0 H   27           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53376 2017-2018 1960 2018-02-11   RC Strasbourg Alsace 393 Troyes 406 2 1 H   25           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53352 2017-2018 1960 2018-01-27   Toulouse 373 Troyes 406 1 0 H   23           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53333 2017-2018 1960 2018-01-17   Angers 420 Troyes 406 3 1 H   21           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53316 2017-2018 1960 2017-12-12   Olympique de Marseille 342 Troyes 406 3 1 H   19           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53292 2017-2018 1960 2017-12-09   AS Monaco 387 Troyes 406 3 2 H   17           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53278 2017-2018 1960 2017-11-29   Paris Saint-Germain 337 Troyes 406 2 0 H   15           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53252 2017-2018 1960 2017-11-18   Dijon 413 Troyes 406 3 1 H   13           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53235 2017-2018 1960 2017-10-28   Caen 417 Troyes 406 1 0 H   11           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53213 2017-2018 1960 2017-10-14   Lille OSC 344 Troyes 406 2 2 D   9           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53192 2017-2018 1960 2017-09-23   Metz 376 Troyes 406 0 1 A   7           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53163 2017-2018 1960 2017-08-26   FC Girondins de Bordeaux 404 Troyes 406 2 1 H   4           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
53139 2017-2018 1960 2017-08-11   OGC Nice 381 Troyes 406 1 2 A   2           0 0 0 2026-06-08T23:19:41.592382 2026-06-08T23:19:41.592382     RSSSF Historical Results 8  
52718 2015-2016 1958 2016-04-24   Montpellier HSC 382 Troyes 406 4 1 H   35           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52742 2015-2016 1958 2016-04-16   Toulouse 373 Troyes 406 1 0 H   37           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52697 2015-2016 1958 2016-04-09   AS Saint-Étienne 396 Troyes 406 1 0 H   33           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52676 2015-2016 1958 2016-03-19   Caen 417 Troyes 406 2 1 H   31           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52658 2015-2016 1958 2016-03-05   OGC Nice 381 Troyes 406 2 1 H   29           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52636 2015-2016 1958 2016-02-20   AS Monaco 387 Troyes 406 3 1 H   27           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52627 2015-2016 1958 2016-02-13   Ajaccio 410 Troyes 406 2 3 A   26           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52618 2015-2016 1958 2016-02-06   SC Bastia 415 Troyes 406 2 0 H   25           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52605 2015-2016 1958 2016-02-03   EA Guingamp 419 Troyes 406 4 0 H   24           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52587 2015-2016 1958 2016-01-23   Lille OSC 344 Troyes 406 1 3 A   22           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52564 2015-2016 1958 2016-01-09   Olympique Lyonnais 343 Troyes 406 4 1 H   20           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52538 2015-2016 1958 2015-12-05   Stade de Reims 384 Troyes 406 1 1 D   17           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52514 2015-2016 1958 2015-11-28   Paris Saint-Germain 337 Troyes 406 4 1 H   15           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52496 2015-2016 1958 2015-11-07   Lorient 369 Troyes 406 4 1 H   13           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52480 2015-2016 1958 2015-10-25   FC Girondins de Bordeaux 404 Troyes 406 1 0 H   11           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52466 2015-2016 1958 2015-10-17   FC Nantes 388 Troyes 406 3 0 H   10           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52447 2015-2016 1958 2015-09-26   Stade Rennais FC 391 Troyes 406 1 1 D   8           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52425 2015-2016 1958 2015-09-19   Angers 420 Troyes 406 1 0 H   6           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
52402 2015-2016 1958 2015-08-23   Olympique de Marseille 342 Troyes 406 6 0 H   3           0 0 0 2026-06-08T23:19:36.832992 2026-06-08T23:19:36.832992     RSSSF Historical Results 8  
51586 2012-2013 1943 2013-05-11   Ajaccio 410 Troyes 406 0 1 A   36           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51573 2012-2013 1943 2013-04-28   OGC Nice 381 Troyes 406 3 1 H   34           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51563 2012-2013 1943 2013-04-24   Stade Rennais FC 391 Troyes 406 1 2 A   33           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51614 2012-2013 1943 2013-04-24   Valenciennes 402 Troyes 406 2 1 H   38           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51536 2012-2013 1943 2013-04-06   AS Nancy-Lorraine 403 Troyes 406 1 0 H   31           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51519 2012-2013 1943 2013-03-16   Montpellier HSC 382 Troyes 406 1 1 D   29           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51503 2012-2013 1943 2013-03-03   Olympique de Marseille 342 Troyes 406 2 1 H   27           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51481 2012-2013 1943 2013-02-16   Toulouse 373 Troyes 406 2 2 D   25           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51459 2012-2013 1943 2013-02-02   Lille OSC 344 Troyes 406 1 1 D   23           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51439 2012-2013 1943 2013-01-19   Lorient 369 Troyes 406 3 2 H   21           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51418 2012-2013 1943 2012-12-22   FC Girondins de Bordeaux 404 Troyes 406 0 0 D   19           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51399 2012-2013 1943 2012-12-12   Evian Thonon Gaillard 426 Troyes 406 2 0 H   17           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51368 2012-2013 1943 2012-11-24   Paris Saint-Germain 337 Troyes 406 4 0 H   14           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51347 2012-2013 1943 2012-11-10   AS Saint-Étienne 396 Troyes 406 2 0 H   12           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51329 2012-2013 1943 2012-10-27   Stade de Reims 384 Troyes 406 1 1 D   10           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51309 2012-2013 1943 2012-10-06   SC Bastia 415 Troyes 406 3 2 H   8           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51287 2012-2013 1943 2012-09-22   FC Sochaux-Montbéliard 398 Troyes 406 3 1 H   6           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51270 2012-2013 1943 2012-09-01   Stade Brestois 29 386 Troyes 406 2 1 H   4           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51247 2012-2013 1943 2012-08-18   Olympique Lyonnais 343 Troyes 406 4 1 H   2           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
58519 2006-2007 1953 2007-05-19   Paris Saint-Germain 337 Troyes 406 2 1 H   37     France     0 0 0 2026-06-09 07:55:10 2026-06-09 07:55:10        
58493 2006-2007 1953 2007-05-05   Auxerre 397 Troyes 406 1 0 H   35     France     0 0 0 2026-06-09 07:55:10 2026-06-09 07:55:10        
58474 2006-2007 1953 2007-04-21   Olympique de Marseille 342 Troyes 406 2 1 H   33     France     0 0 0 2026-06-09 07:55:10 2026-06-09 07:55:10        
58452 2006-2007 1953 2007-04-07   AS Monaco 387 Troyes 406 0 0 D   31     France     0 0 0 2026-06-09 07:55:10 2026-06-09 07:55:10        
58439 2006-2007 1953 2007-03-17   AS Saint-Étienne 396 Troyes 406 3 1 H   29     France     0 0 0 2026-06-09 07:55:10 2026-06-09 07:55:10        

Next page

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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);
Powered by Datasette · Queries took 36.526ms