home / football

match

141 rows where away_team_id = 386 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, created_by_run_id, updated_by_run_id, 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
60922 2023-2024 1939 2024-05-19   Toulouse FC 389 Stade Brestois 29 386 0 3 A   34     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Toulouse:Brest:19/05/2024
60893 2023-2024 1939 2024-04-28   Stade Rennais FC 391 Stade Brestois 29 386 4 5 A   31     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Rennes:Brest:28/04/2024
60874 2023-2024 1939 2024-04-14   Olympique Lyonnais 343 Stade Brestois 29 386 4 3 H   29     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Lyon:Brest:14/04/2024
60854 2023-2024 1939 2024-03-31   Lorient 369 Stade Brestois 29 386 0 1 A   27     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Lorient:Brest:31/03/2024
60835 2023-2024 1939 2024-03-09   Lens 371 Stade Brestois 29 386 1 0 H   25     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Lens:Brest:09/03/2024
60817 2023-2024 1939 2024-02-24   RC Strasbourg Alsace 393 Stade Brestois 29 386 0 3 A   23     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Strasbourg:Brest:24/02/2024
60801 2023-2024 1939 2024-02-11   Clermont Foot 379 Stade Brestois 29 386 1 1 D   21     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Clermont:Brest:11/02/2024
60787 2023-2024 1939 2024-01-28   Paris Saint-Germain 337 Stade Brestois 29 386 2 2 D   19     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Paris SG:Brest:28/01/2024
60755 2023-2024 1939 2023-12-17   FC Nantes 388 Stade Brestois 29 386 0 2 A   16     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Nantes:Brest:17/12/2023
60748 2023-2024 1939 2023-12-10   Metz 376 Stade Brestois 29 386 0 1 A   15     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Metz:Brest:10/12/2023
60727 2023-2024 1939 2023-11-26   Montpellier HSC 382 Stade Brestois 29 386 1 3 A   12     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Montpellier:Brest:26/11/2023
60712 2023-2024 1939 2023-11-05   AS Monaco 387 Stade Brestois 29 386 2 0 H   11     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Monaco:Brest:05/11/2023
60692 2023-2024 1939 2023-10-22   Lille OSC 344 Stade Brestois 29 386 1 0 H   9     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Lille:Brest:22/10/2023
60676 2023-2024 1939 2023-10-01   OGC Nice 381 Stade Brestois 29 386 0 0 D   7     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Nice:Brest:01/10/2023
60658 2023-2024 1939 2023-09-17   Stade de Reims 384 Stade Brestois 29 386 1 2 A   5     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Reims:Brest:17/09/2023
60636 2023-2024 1939 2023-08-26   Olympique de Marseille 342 Stade Brestois 29 386 2 0 H   3     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Marseille:Brest:26/08/2023
60630 2023-2024 1939 2023-08-20   Le Havre AC 390 Stade Brestois 29 386 1 2 A   2     France     0 0 0 2026-06-09 10:00:00 2026-06-09 10:00:00 999 999 999 999 International Results CSV 1 csv:///FRA2324:Le Havre:Brest:20/08/2023
54223 2022-2023 1965 2023-05-07   Lorient 369 Stade Brestois 29 386 2 1 H   34           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54201 2022-2023 1965 2023-04-23   Ajaccio 410 Stade Brestois 29 386 0 0 D   32           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54251 2022-2023 1965 2023-04-17   Olympique de Marseille 342 Stade Brestois 29 386 1 2 A   37           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54184 2022-2023 1965 2023-04-09   Stade de Reims 384 Stade Brestois 29 386 1 1 D   30           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54161 2022-2023 1965 2023-03-19   Troyes 406 Stade Brestois 29 386 2 2 D   28           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54142 2022-2023 1965 2023-03-05   RC Strasbourg Alsace 393 Stade Brestois 29 386 0 1 A   26           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54127 2022-2023 1965 2023-02-24   Lille OSC 344 Stade Brestois 29 386 2 1 H   25           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54113 2022-2023 1965 2023-02-12   Montpellier HSC 382 Stade Brestois 29 386 3 0 H   23           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54074 2022-2023 1965 2023-01-15   Toulouse FC 389 Stade Brestois 29 386 1 1 D   19           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54048 2022-2023 1965 2023-01-01   AS Monaco 387 Stade Brestois 29 386 1 0 H   17           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54094 2022-2023 1965 2022-12-26   Olympique Lyonnais 343 Stade Brestois 29 386 0 0 D   21           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54022 2022-2023 1965 2022-11-06   OGC Nice 381 Stade Brestois 29 386 1 0 H   14           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
54001 2022-2023 1965 2022-10-23   Clermont Foot 379 Stade Brestois 29 386 1 3 A   12           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53993 2022-2023 1965 2022-10-16   FC Nantes 388 Stade Brestois 29 386 4 1 H   11           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53972 2022-2023 1965 2022-10-02   Auxerre 397 Stade Brestois 29 386 1 1 D   9           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53948 2022-2023 1965 2022-09-10   Paris Saint-Germain 337 Stade Brestois 29 386 1 0 H   7           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53935 2022-2023 1965 2022-09-05   Stade Rennais FC 391 Stade Brestois 29 386 3 1 H   5           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53911 2022-2023 1965 2022-08-21   Angers 420 Stade Brestois 29 386 1 3 A   3           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
53894 2022-2023 1965 2022-08-07   Lens 371 Stade Brestois 29 386 3 2 H   1           0 0 0 2026-06-08T23:19:53.453559 2026-06-08T23:19:53.453559     RSSSF Historical Results 8  
62426 2021-2022 1964 2022-05-14   AS Monaco 387 Stade Brestois 29 386 4 2 H   37           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62398 2021-2022 1964 2022-04-24   Metz 376 Stade Brestois 29 386 0 1 A   34           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62374 2021-2022 1964 2022-04-16   AS Saint-Étienne 396 Stade Brestois 29 386 2 1 H   32           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62358 2021-2022 1964 2022-04-03   Montpellier HSC 382 Stade Brestois 29 386 1 2 A   30           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62347 2021-2022 1964 2022-03-20   Angers 420 Stade Brestois 29 386 1 0 H   29           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62324 2021-2022 1964 2022-03-05   Lens 371 Stade Brestois 29 386 0 1 A   27           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62308 2021-2022 1964 2022-02-20   Stade de Reims 384 Stade Brestois 29 386 1 1 D   25           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62291 2021-2022 1964 2022-02-06   Stade Rennais FC 391 Stade Brestois 29 386 2 0 H   23           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62260 2021-2022 1964 2022-01-15   Paris Saint-Germain 337 Stade Brestois 29 386 2 0 H   21           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62250 2021-2022 1964 2021-12-22   Troyes 406 Stade Brestois 29 386 1 1 D   19           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62222 2021-2022 1964 2021-12-04   Olympique de Marseille 342 Stade Brestois 29 386 1 2 A   17           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62206 2021-2022 1964 2021-11-28   FC Girondins de Bordeaux 404 Stade Brestois 29 386 1 2 A   15           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62187 2021-2022 1964 2021-11-07   Lorient 369 Stade Brestois 29 386 1 2 A   12           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62164 2021-2022 1964 2021-10-23   Lille OSC 344 Stade Brestois 29 386 1 1 D   11           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62144 2021-2022 1964 2021-10-02   OGC Nice 381 Stade Brestois 29 386 2 1 H   9           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62125 2021-2022 1964 2021-09-22   FC Nantes 388 Stade Brestois 29 386 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  
62117 2021-2022 1964 2021-09-19   Clermont Foot 379 Stade Brestois 29 386 1 1 D   6           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62099 2021-2022 1964 2021-08-29   RC Strasbourg Alsace 393 Stade Brestois 29 386 3 1 H   4           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
62064 2021-2022 1964 2021-08-07   Olympique Lyonnais 343 Stade Brestois 29 386 1 1 D   1           0 0 0 2026-06-09 10:03:27 2026-06-09 10:03:27 1 1 1 1 FBref 2  
55092 2020-2021 1963 2021-05-01   Montpellier HSC 382 Stade Brestois 29 386 0 0 D   37     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
55084 2020-2021 1963 2021-04-24   OGC Nice 381 Stade Brestois 29 386 3 2 H   36     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
55065 2020-2021 1963 2021-04-10   AS Saint-Étienne 396 Stade Brestois 29 386 1 2 A   34     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
55046 2020-2021 1963 2021-03-20   Lorient 369 Stade Brestois 29 386 1 0 H   31     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
55026 2020-2021 1963 2021-03-06   Olympique de Marseille 342 Stade Brestois 29 386 3 1 H   29     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
55010 2020-2021 1963 2021-02-20   AS Monaco 387 Stade Brestois 29 386 2 0 H   27     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54998 2020-2021 1963 2021-02-06   Lille OSC 344 Stade Brestois 29 386 0 0 D   25     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54977 2020-2021 1963 2021-01-23   RC Strasbourg Alsace 393 Stade Brestois 29 386 2 2 D   23     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54964 2020-2021 1963 2021-01-09   Stade de Reims 384 Stade Brestois 29 386 1 0 H   21     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54947 2020-2021 1963 2020-12-26   Paris Saint-Germain 337 Stade Brestois 29 386 3 0 H   19     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54928 2020-2021 1963 2020-12-12   Lens 371 Stade Brestois 29 386 2 1 H   17     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54913 2020-2021 1963 2020-11-28   Olympique Lyonnais 343 Stade Brestois 29 386 2 2 D   15     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54897 2020-2021 1963 2020-11-14   Girondins Bordeaux 476 Stade Brestois 29 386 1 0 H   13     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54890 2020-2021 1963 2020-11-07   Metz 376 Stade Brestois 29 386 0 2 A   12     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54862 2020-2021 1963 2020-10-17   Stade Rennais FC 391 Stade Brestois 29 386 2 1 H   9     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54850 2020-2021 1963 2020-10-03   FC Nantes 388 Stade Brestois 29 386 3 1 H   7     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54834 2020-2021 1963 2020-09-19   Angers 420 Stade Brestois 29 386 3 2 H   5     France     0 0 0 2026-06-08 22:45:40 2026-06-08 22:45:40        
54794 2019-2020 1962 2020-02-15   Stade de Reims 384 Stade Brestois 29 386 1 0 H   28     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54775 2019-2020 1962 2020-02-01   OGC Nice 381 Stade Brestois 29 386 2 2 D   26     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54763 2019-2020 1962 2020-01-18   Stade Rennais FC 391 Stade Brestois 29 386 0 0 D   24     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54745 2019-2020 1962 2020-01-04   Dijon 413 Stade Brestois 29 386 3 0 H   22     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54725 2019-2020 1962 2019-12-14   Montpellier HSC 382 Stade Brestois 29 386 4 0 H   19     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54702 2019-2020 1962 2019-11-30   Lille OSC 344 Stade Brestois 29 386 1 0 H   17     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54686 2019-2020 1962 2019-11-16   Olympique de Marseille 342 Stade Brestois 29 386 2 1 H   15     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54648 2019-2020 1962 2019-10-12   Angers 420 Stade Brestois 29 386 0 1 A   10     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54632 2019-2020 1962 2019-09-28   AS Monaco 387 Stade Brestois 29 386 4 1 H   8     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54616 2019-2020 1962 2019-09-14   Girondins Bordeaux 476 Stade Brestois 29 386 2 2 D   6     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54601 2019-2020 1962 2019-08-31   Nimes 523 Stade Brestois 29 386 3 0 H   4     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
54586 2019-2020 1962 2019-08-17   AS Saint-Étienne 396 Stade Brestois 29 386 1 1 D   2     France     0 0 0 2026-06-08 22:45:36 2026-06-08 22:45:36        
51600 2012-2013 1943 2013-05-18   Paris Saint-Germain 337 Stade Brestois 29 386 3 1 H   37           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51578 2012-2013 1943 2013-05-04   Montpellier HSC 382 Stade Brestois 29 386 2 1 H   35           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51556 2012-2013 1943 2013-04-20   Olympique de Marseille 342 Stade Brestois 29 386 1 0 H   33           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51540 2012-2013 1943 2013-04-06   SC Bastia 415 Stade Brestois 29 386 4 0 H   31           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51516 2012-2013 1943 2013-03-16   Lorient 369 Stade Brestois 29 386 4 0 H   29           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51492 2012-2013 1943 2013-02-24   FC Girondins de Bordeaux 404 Stade Brestois 29 386 0 2 A   26           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51471 2012-2013 1943 2013-02-09   Valenciennes 402 Stade Brestois 29 386 2 1 H   24           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51447 2012-2013 1943 2013-01-26   Troyes 406 Stade Brestois 29 386 2 1 H   22           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51429 2012-2013 1943 2013-01-12   Evian Thonon Gaillard 426 Stade Brestois 29 386 0 2 A   20           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51407 2012-2013 1943 2012-12-15   FC Sochaux-Montbéliard 398 Stade Brestois 29 386 1 2 A   18           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51391 2012-2013 1943 2012-12-08   Stade Rennais FC 391 Stade Brestois 29 386 2 2 D   16           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51371 2012-2013 1943 2012-11-24   Stade de Reims 384 Stade Brestois 29 386 0 0 D   14           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51346 2012-2013 1943 2012-11-10   Lille OSC 344 Stade Brestois 29 386 1 0 H   12           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51330 2012-2013 1943 2012-10-27   Toulouse 373 Stade Brestois 29 386 3 1 H   10           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51324 2012-2013 1943 2012-10-21   Olympique Lyonnais 343 Stade Brestois 29 386 1 0 H   9           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  
51296 2012-2013 1943 2012-09-29   Ajaccio 410 Stade Brestois 29 386 1 0 H   7           0 0 0 2026-06-08T23:19:29.693061 2026-06-08T23:19:29.693061     RSSSF Historical Results 8  

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 33.406ms