home / football

h2h_record

106 rows where team_a_id = 539

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: team_b_id, total_matches, wins_a, wins_b, draws, goals_a, goals_b, last_result, date (date), last_match_date (date), created_at (date), updated_at (date)

h2h_id ▼ team_a_id team_b_id date total_matches wins_a wins_b draws goals_a goals_b last_match_date last_result last_match_id competition_id created_at updated_at created_by_run_id updated_by_run_id source_id source_raw_key
67097 Racing 539 Middlesbrough 1277 2006-08-19 0 0 0 0 0 0         2026-06-11 10:24:46.316221 2026-06-11 10:24:46.316222     International Results CSV 1 h2h://539:1277/2006-08-19
67111 Racing 539 Aston Villa 737 2006-08-23 0 0 0 0 0 0         2026-06-11 10:24:46.318942 2026-06-11 10:24:46.318942     International Results CSV 1 h2h://737:539/2006-08-23
67131 Racing 539 Wigan 1284 2006-08-26 0 0 0 0 0 0         2026-06-11 10:24:46.323353 2026-06-11 10:24:46.323353     International Results CSV 1 h2h://1284:539/2006-08-26
67195 Racing 539 Manchester City 748 2006-09-11 0 0 0 0 0 0         2026-06-11 10:24:46.353635 2026-06-11 10:24:46.353636     International Results CSV 1 h2h://539:748/2006-09-11
67202 Racing 539 Sheffield United 758 2006-09-16 0 0 0 0 0 0         2026-06-11 10:24:46.355057 2026-06-11 10:24:46.355057     International Results CSV 1 h2h://758:539/2006-09-16
67342 Racing 539 West Ham 1275 2006-10-01 0 0 0 0 0 0         2026-06-11 10:24:46.385057 2026-06-11 10:24:46.385057     International Results CSV 1 h2h://1275:539/2006-10-01
67364 Racing 539 Chelsea 741 2006-10-14 0 0 0 0 0 0         2026-06-11 10:24:46.406143 2026-06-11 10:24:46.406144     International Results CSV 1 h2h://539:741/2006-10-14
67431 Racing 539 Arsenal 736 2006-10-22 0 0 0 0 0 0         2026-06-11 10:24:46.419281 2026-06-11 10:24:46.419281     International Results CSV 1 h2h://539:736/2006-10-22
67481 Racing 539 Portsmouth 1283 2006-10-28 0 0 0 0 0 0         2026-06-11 10:24:46.428397 2026-06-11 10:24:46.428398     International Results CSV 1 h2h://1283:539/2006-10-28
67521 Racing 539 Liverpool 747 2006-11-04 0 0 0 0 0 0         2026-06-11 10:24:46.435837 2026-06-11 10:24:46.435837     International Results CSV 1 h2h://747:539/2006-11-04
67606 Racing 539 Tottenham 1273 2006-11-12 0 0 0 0 0 0         2026-06-11 10:24:46.453684 2026-06-11 10:24:46.453684     International Results CSV 1 h2h://539:1273/2006-11-12
67637 Racing 539 Charlton 1280 2006-11-18 0 0 0 0 0 0         2026-06-11 10:24:46.468533 2026-06-11 10:24:46.468533     International Results CSV 1 h2h://539:1280/2006-11-18
67679 Racing 539 Fulham 744 2006-11-25 0 0 0 0 0 0         2026-06-11 10:24:46.481155 2026-06-11 10:24:46.481155     International Results CSV 1 h2h://744:539/2006-11-25
67733 Racing 539 Bologna 783 2006-12-02 0 0 0 0 0 0         2026-06-11 10:24:46.494221 2026-06-11 10:24:46.494221     International Results CSV 1 h2h://539:783/2006-12-02
67774 Racing 539 Newcastle 1272 2006-12-06 0 0 0 0 0 0         2026-06-11 10:24:46.502999 2026-06-11 10:24:46.502999     International Results CSV 1 h2h://1272:539/2006-12-06
67786 Racing 539 Watford FC 913 2006-12-09 0 0 0 0 0 0         2026-06-11 10:24:46.505881 2026-06-11 10:24:46.505882     International Results CSV 1 h2h://913:539/2006-12-09
67844 Racing 539 Blackburn 1270 2006-12-16 0 0 0 0 0 0         2026-06-11 10:24:46.517407 2026-06-11 10:24:46.517407     International Results CSV 1 h2h://539:1270/2006-12-16
67906 Racing 539 Everton 743 2006-12-23 0 0 0 0 0 0         2026-06-11 10:24:46.529408 2026-06-11 10:24:46.529409     International Results CSV 1 h2h://539:743/2006-12-23
67924 Racing 539 Chelsea 741 2006-12-26 1 0 1 0 0 1 2006-10-14 W     2026-06-11 10:24:46.533747 2026-06-11 10:24:46.533747     International Results CSV 1 h2h://741:539/2006-12-26
67949 Racing 539 West Ham 1275 2007-01-01 1 1 0 0 1 0 2006-10-01 W     2026-06-11 10:24:46.539913 2026-06-11 10:24:46.539914     International Results CSV 1 h2h://539:1275/2007-01-01
67985 Racing 539 Everton 743 2007-01-14 1 0 1 0 0 2 2006-12-23 W     2026-06-11 10:24:46.550053 2026-06-11 10:24:46.550053     International Results CSV 1 h2h://743:539/2007-01-14
68006 Racing 539 Sheffield United 758 2007-01-20 1 1 0 0 2 1 2006-09-16 W     2026-06-11 10:24:46.557848 2026-06-11 10:24:46.557849     International Results CSV 1 h2h://539:758/2007-01-20
68091 Racing 539 Wigan 1284 2007-01-30 1 0 1 0 0 1 2006-08-26 L     2026-06-11 10:24:46.576514 2026-06-11 10:24:46.576514     International Results CSV 1 h2h://539:1284/2007-01-30
68117 Racing 539 Manchester City 748 2007-02-03 1 1 0 0 1 0 2006-09-11 L     2026-06-11 10:24:46.581797 2026-06-11 10:24:46.581797     International Results CSV 1 h2h://748:539/2007-02-03
68152 Racing 539 Aston Villa 737 2007-02-10 1 0 1 0 1 2 2006-08-23 L     2026-06-11 10:24:46.596396 2026-06-11 10:24:46.596396     International Results CSV 1 h2h://539:737/2007-02-10
68250 Racing 539 Middlesbrough 1277 2007-02-24 1 1 0 0 3 2 2006-08-19 L     2026-06-11 10:24:46.616295 2026-06-11 10:24:46.616295     International Results CSV 1 h2h://1277:539/2007-02-24
68299 Racing 539 Arsenal 736 2007-03-03 1 0 1 0 0 4 2006-10-22 W     2026-06-11 10:24:46.625330 2026-06-11 10:24:46.625330     International Results CSV 1 h2h://736:539/2007-03-03
68399 Racing 539 Portsmouth 1283 2007-03-17 1 0 1 0 1 3 2006-10-28 L     2026-06-11 10:24:46.644898 2026-06-11 10:24:46.644898     International Results CSV 1 h2h://539:1283/2007-03-17
68466 Racing 539 Tottenham 1273 2007-04-01 1 1 0 0 3 1 2006-11-12 L     2026-06-11 10:24:46.674393 2026-06-11 10:24:46.674394     International Results CSV 1 h2h://1273:539/2007-04-01
68486 Racing 539 Liverpool 747 2007-04-07 1 0 1 0 0 2 2006-11-04 L     2026-06-11 10:24:46.678203 2026-06-11 10:24:46.678204     International Results CSV 1 h2h://539:747/2007-04-07
68528 Racing 539 Charlton 1280 2007-04-09 1 1 0 0 2 0 2006-11-18 L     2026-06-11 10:24:46.685869 2026-06-11 10:24:46.685869     International Results CSV 1 h2h://1280:539/2007-04-09
68541 Racing 539 Fulham 744 2007-04-14 1 1 0 0 1 0 2006-11-25 W     2026-06-11 10:24:46.688243 2026-06-11 10:24:46.688243     International Results CSV 1 h2h://539:744/2007-04-14
68603 Racing 539 Bologna 783 2007-04-21 1 1 0 0 1 0 2006-12-02 L     2026-06-11 10:24:46.700108 2026-06-11 10:24:46.700108     International Results CSV 1 h2h://783:539/2007-04-21
68690 Racing 539 Newcastle 1272 2007-04-30 1 0 1 0 2 3 2006-12-06 L     2026-06-11 10:24:46.717371 2026-06-11 10:24:46.717372     International Results CSV 1 h2h://539:1272/2007-04-30
68703 Racing 539 Watford FC 913 2007-05-05 1 0 0 1 0 0 2006-12-09 D     2026-06-11 10:24:46.719721 2026-06-11 10:24:46.719721     International Results CSV 1 h2h://539:913/2007-05-05
68775 Racing 539 Blackburn 1270 2007-05-13 1 0 1 0 1 2 2006-12-16 W     2026-06-11 10:24:46.733478 2026-06-11 10:24:46.733478     International Results CSV 1 h2h://1270:539/2007-05-13
68929 Racing 539 Chelsea 741 2007-08-15 2 0 1 1 2 3 2006-12-26 D     2026-06-11 10:24:46.815814 2026-06-11 10:24:46.815815     International Results CSV 1 h2h://539:741/2007-08-15
68943 Racing 539 Everton 743 2007-08-18 2 0 1 1 1 3 2007-01-14 D     2026-06-11 10:24:46.819421 2026-06-11 10:24:46.819421     International Results CSV 1 h2h://539:743/2007-08-18
68974 Racing 539 Bologna 783 2007-08-25 2 2 0 0 4 1 2007-04-21 L     2026-06-11 10:24:46.836438 2026-06-11 10:24:46.836438     International Results CSV 1 h2h://783:539/2007-08-25
69039 Racing 539 West Ham 1275 2007-09-01 2 2 0 0 7 0 2007-01-01 W     2026-06-11 10:24:46.851156 2026-06-11 10:24:46.851156     International Results CSV 1 h2h://539:1275/2007-09-01
69089 Racing 539 Sunderland 1279 2007-09-15 0 0 0 0 0 0         2026-06-11 10:24:46.877405 2026-06-11 10:24:46.877405     International Results CSV 1 h2h://1279:539/2007-09-15
69136 Racing 539 Wigan 1284 2007-09-22 2 1 1 0 3 3 2007-01-30 W     2026-06-11 10:24:46.886133 2026-06-11 10:24:46.886133     International Results CSV 1 h2h://539:1284/2007-09-22
69208 Racing 539 Portsmouth 1283 2007-09-29 2 0 1 1 1 3 2007-03-17 D     2026-06-11 10:24:46.899936 2026-06-11 10:24:46.899937     International Results CSV 1 h2h://1283:539/2007-09-29
69280 Racing 539 Derby 1278 2007-10-07 0 0 0 0 0 0         2026-06-11 10:24:46.913640 2026-06-11 10:24:46.913640     International Results CSV 1 h2h://539:1278/2007-10-07
69310 Racing 539 Blackburn 1270 2007-10-20 2 0 1 1 4 5 2007-05-13 D     2026-06-11 10:24:46.935422 2026-06-11 10:24:46.935422     International Results CSV 1 h2h://1270:539/2007-10-20
69359 Racing 539 Newcastle 1272 2007-10-27 2 1 1 0 3 3 2007-04-30 W     2026-06-11 10:24:47.362607 2026-06-11 10:24:47.362607     International Results CSV 1 h2h://539:1272/2007-10-27
69419 Racing 539 Fulham 744 2007-11-03 2 2 0 0 2 0 2007-04-14 L     2026-06-11 10:24:47.376520 2026-06-11 10:24:47.376521     International Results CSV 1 h2h://744:539/2007-11-03
69506 Racing 539 Arsenal 736 2007-11-12 2 0 2 0 1 6 2007-03-03 L     2026-06-11 10:24:47.393422 2026-06-11 10:24:47.393422     International Results CSV 1 h2h://539:736/2007-11-12
69523 Racing 539 Manchester City 748 2007-11-24 2 2 0 0 3 0 2007-02-03 L     2026-06-11 10:24:47.413505 2026-06-11 10:24:47.413505     International Results CSV 1 h2h://748:539/2007-11-24
69578 Racing 539 Middlesbrough 1277 2007-12-01 2 1 1 0 4 4 2007-02-24 L     2026-06-11 10:24:47.423946 2026-06-11 10:24:47.423947     International Results CSV 1 h2h://539:1277/2007-12-01
69624 Racing 539 Liverpool 747 2007-12-08 2 0 2 0 1 4 2007-04-07 L     2026-06-11 10:24:47.433273 2026-06-11 10:24:47.433274     International Results CSV 1 h2h://539:747/2007-12-08
69679 Racing 539 Birmingham 1282 2007-12-15 0 0 0 0 0 0         2026-06-11 10:24:47.446184 2026-06-11 10:24:47.446184     International Results CSV 1 h2h://1282:539/2007-12-15
69729 Racing 539 Sunderland 1279 2007-12-22 1 0 1 0 1 2 2007-09-15 L     2026-06-11 10:24:47.457249 2026-06-11 10:24:47.457250     International Results CSV 1 h2h://539:1279/2007-12-22
69759 Racing 539 West Ham 1275 2007-12-26 3 2 1 0 7 3 2007-09-01 W     2026-06-11 10:24:47.463297 2026-06-11 10:24:47.463297     International Results CSV 1 h2h://1275:539/2007-12-26
69767 Racing 539 Tottenham 1273 2007-12-29 2 1 1 0 3 2 2007-04-01 W     2026-06-11 10:24:47.465456 2026-06-11 10:24:47.465456     International Results CSV 1 h2h://1273:539/2007-12-29
69777 Racing 539 Portsmouth 1283 2008-01-01 3 0 2 1 5 10 2007-09-29 L     2026-06-11 10:24:47.467287 2026-06-11 10:24:47.467288     International Results CSV 1 h2h://539:1283/2008-01-01
69800 Racing 539 Aston Villa 737 2008-01-12 2 1 1 0 3 2 2007-02-10 L     2026-06-11 10:24:47.473632 2026-06-11 10:24:47.473632     International Results CSV 1 h2h://737:539/2008-01-12
69920 Racing 539 Chelsea 741 2008-01-30 3 0 2 1 3 5 2007-08-15 W     2026-06-11 10:24:47.505864 2026-06-11 10:24:47.505864     International Results CSV 1 h2h://741:539/2008-01-30
69927 Racing 539 Bologna 783 2008-02-02 3 2 1 0 4 4 2007-08-25 L     2026-06-11 10:24:47.508266 2026-06-11 10:24:47.508266     International Results CSV 1 h2h://539:783/2008-02-02
69975 Racing 539 Everton 743 2008-02-09 3 1 1 1 2 3 2007-08-18 L     2026-06-11 10:24:47.527503 2026-06-11 10:24:47.527503     International Results CSV 1 h2h://743:539/2008-02-09
70083 Racing 539 Aston Villa 737 2008-02-24 3 1 2 0 4 5 2008-01-12 L     2026-06-11 10:24:47.549310 2026-06-11 10:24:47.549310     International Results CSV 1 h2h://539:737/2008-02-24
70134 Racing 539 Middlesbrough 1277 2008-03-01 3 1 1 1 5 5 2007-12-01 D     2026-06-11 10:24:47.559235 2026-06-11 10:24:47.559235     International Results CSV 1 h2h://1277:539/2008-03-01
70177 Racing 539 Manchester City 748 2008-03-08 3 2 1 0 4 2 2007-11-24 L     2026-06-11 10:24:47.567516 2026-06-11 10:24:47.567516     International Results CSV 1 h2h://539:748/2008-03-08
70224 Racing 539 Liverpool 747 2008-03-15 3 1 2 0 4 5 2007-12-08 L     2026-06-11 10:24:47.577087 2026-06-11 10:24:47.577088     International Results CSV 1 h2h://747:539/2008-03-15
70300 Racing 539 Birmingham 1282 2008-03-22 1 0 0 1 1 1 2007-12-15 D     2026-06-11 10:24:47.592502 2026-06-11 10:24:47.592502     International Results CSV 1 h2h://539:1282/2008-03-22
70337 Racing 539 Blackburn 1270 2008-03-29 3 0 2 1 6 9 2007-10-20 L     2026-06-11 10:24:47.610884 2026-06-11 10:24:47.610884     International Results CSV 1 h2h://539:1270/2008-03-29
70394 Racing 539 Newcastle 1272 2008-04-05 3 2 1 0 5 4 2007-10-27 L     2026-06-11 10:24:47.622490 2026-06-11 10:24:47.622490     International Results CSV 1 h2h://1272:539/2008-04-05
70433 Racing 539 Fulham 744 2008-04-12 3 2 1 0 3 3 2007-11-03 L     2026-06-11 10:24:47.630171 2026-06-11 10:24:47.630171     International Results CSV 1 h2h://539:744/2008-04-12
70493 Racing 539 Arsenal 736 2008-04-19 3 0 3 0 2 9 2007-11-12 W     2026-06-11 10:24:47.641372 2026-06-11 10:24:47.641372     International Results CSV 1 h2h://736:539/2008-04-19
70544 Racing 539 Wigan 1284 2008-04-26 3 2 1 0 5 4 2007-09-22 L     2026-06-11 10:24:47.651654 2026-06-11 10:24:47.651654     International Results CSV 1 h2h://1284:539/2008-04-26
70594 Racing 539 Tottenham 1273 2008-05-03 3 1 2 0 7 8 2007-12-29 L     2026-06-11 10:24:47.661913 2026-06-11 10:24:47.661913     International Results CSV 1 h2h://539:1273/2008-05-03
70679 Racing 539 Derby 1278 2008-05-11 1 1 0 0 1 0 2007-10-07 L     2026-06-11 10:24:47.678729 2026-06-11 10:24:47.678729     International Results CSV 1 h2h://1278:539/2008-05-11
78208 Racing 539 Stoke 1285 2012-08-18 0 0 0 0 0 0         2026-06-11 10:25:11.362077 2026-06-11 10:25:11.362078     International Results CSV 1 h2h://539:1285/2012-08-18
78223 Racing 539 Chelsea 741 2012-08-22 4 0 3 1 3 6 2008-01-30 W     2026-06-11 10:25:11.362271 2026-06-11 10:25:11.362272     International Results CSV 1 h2h://741:539/2012-08-22
78361 Racing 539 Tottenham 1273 2012-09-16 4 1 3 0 7 9 2008-05-03 L     2026-06-11 10:25:11.364746 2026-06-11 10:25:11.364747     International Results CSV 1 h2h://539:1273/2012-09-16
78378 Racing 539 West Bromwich 922 2012-09-22 0 0 0 0 0 0         2026-06-11 10:25:11.364972 2026-06-11 10:25:11.364972     International Results CSV 1 h2h://922:539/2012-09-22
78458 Racing 539 Newcastle 1272 2012-09-29 4 2 2 0 5 7 2008-04-05 L     2026-06-11 10:25:11.366031 2026-06-11 10:25:11.366031     International Results CSV 1 h2h://539:1272/2012-09-29
78496 Racing 539 Swansea City 921 2012-10-06 0 0 0 0 0 0         2026-06-11 10:25:11.366472 2026-06-11 10:25:11.366472     International Results CSV 1 h2h://921:539/2012-10-06
78544 Racing 539 Liverpool 747 2012-10-20 4 1 3 0 5 7 2008-03-15 W     2026-06-11 10:25:11.368000 2026-06-11 10:25:11.368000     International Results CSV 1 h2h://747:539/2012-10-20
78592 Racing 539 Fulham 744 2012-10-27 4 2 2 0 3 5 2008-04-12 L     2026-06-11 10:25:11.368621 2026-06-11 10:25:11.368621     International Results CSV 1 h2h://539:744/2012-10-27
78701 Racing 539 Norwich City 927 2012-11-10 0 0 0 0 0 0         2026-06-11 10:25:11.370744 2026-06-11 10:25:11.370744     International Results CSV 1 h2h://539:927/2012-11-10
78748 Racing 539 Everton 743 2012-11-17 4 1 2 1 2 4 2008-02-09 L     2026-06-11 10:25:11.371803 2026-06-11 10:25:11.371803     International Results CSV 1 h2h://539:743/2012-11-17
78810 Racing 539 Wigan 1284 2012-11-24 4 2 1 1 5 4 2008-04-26 D     2026-06-11 10:25:11.372669 2026-06-11 10:25:11.372669     International Results CSV 1 h2h://1284:539/2012-11-24
78837 Racing 539 Aston Villa 737 2012-11-27 4 1 3 0 5 7 2008-02-24 W     2026-06-11 10:25:11.373132 2026-06-11 10:25:11.373132     International Results CSV 1 h2h://737:539/2012-11-27
78917 Racing 539 Southampton 751 2012-12-08 0 0 0 0 0 0         2026-06-11 10:25:11.374482 2026-06-11 10:25:11.374482     International Results CSV 1 h2h://751:539/2012-12-08
78959 Racing 539 Sunderland 1279 2012-12-11 2 1 1 0 3 3 2007-12-22 L     2026-06-11 10:25:11.375238 2026-06-11 10:25:11.375238     International Results CSV 1 h2h://1279:539/2012-12-11
79012 Racing 539 Arsenal 736 2012-12-17 4 0 4 0 2 11 2008-04-19 L     2026-06-11 10:25:11.376060 2026-06-11 10:25:11.376060     International Results CSV 1 h2h://539:736/2012-12-17
79040 Racing 539 Manchester City 748 2012-12-22 4 3 1 0 6 2 2008-03-08 L     2026-06-11 10:25:11.376537 2026-06-11 10:25:11.376538     International Results CSV 1 h2h://748:539/2012-12-22
79057 Racing 539 Swansea City 921 2012-12-26 1 0 0 1 2 2 2012-10-06 D     2026-06-11 10:25:11.376746 2026-06-11 10:25:11.376746     International Results CSV 1 h2h://539:921/2012-12-26
79069 Racing 539 West Ham 1275 2012-12-29 4 2 1 1 8 4 2007-12-26 D     2026-06-11 10:25:11.376911 2026-06-11 10:25:11.376911     International Results CSV 1 h2h://539:1275/2012-12-29
79078 Racing 539 Tottenham 1273 2013-01-01 5 1 4 0 8 12 2012-09-16 W     2026-06-11 10:25:11.377026 2026-06-11 10:25:11.377026     International Results CSV 1 h2h://1273:539/2013-01-01
79114 Racing 539 West Bromwich 922 2013-01-12 1 0 1 0 0 1 2012-09-22 L     2026-06-11 10:25:11.377720 2026-06-11 10:25:11.377720     International Results CSV 1 h2h://539:922/2013-01-12
79166 Racing 539 Newcastle 1272 2013-01-19 5 2 2 1 7 9 2012-09-29 D     2026-06-11 10:25:11.378522 2026-06-11 10:25:11.378522     International Results CSV 1 h2h://1272:539/2013-01-19
79241 Racing 539 Chelsea 741 2013-01-30 5 0 4 1 5 10 2012-08-22 L     2026-06-11 10:25:11.379868 2026-06-11 10:25:11.379869     International Results CSV 1 h2h://539:741/2013-01-30
79270 Racing 539 Sunderland 1279 2013-02-02 3 1 2 0 3 6 2012-12-11 L     2026-06-11 10:25:11.380231 2026-06-11 10:25:11.380231     International Results CSV 1 h2h://539:1279/2013-02-02
79315 Racing 539 Stoke 1285 2013-02-09 1 0 0 1 1 1 2012-08-18 D     2026-06-11 10:25:11.381174 2026-06-11 10:25:11.381174     International Results CSV 1 h2h://1285:539/2013-02-09
79402 Racing 539 Wigan 1284 2013-02-23 5 2 2 1 7 7 2012-11-24 L     2026-06-11 10:25:12.071257 2026-06-11 10:25:12.071257     International Results CSV 1 h2h://539:1284/2013-02-23
79441 Racing 539 Everton 743 2013-03-02 5 2 2 1 4 5 2012-11-17 L     2026-06-11 10:25:12.080029 2026-06-11 10:25:12.080029     International Results CSV 1 h2h://743:539/2013-03-02
79490 Racing 539 Aston Villa 737 2013-03-09 5 1 4 0 5 8 2012-11-27 L     2026-06-11 10:25:12.091172 2026-06-11 10:25:12.091172     International Results CSV 1 h2h://539:737/2013-03-09
79579 Racing 539 Arsenal 736 2013-03-30 5 0 5 0 4 16 2012-12-17 W     2026-06-11 10:25:12.130111 2026-06-11 10:25:12.130111     International Results CSV 1 h2h://736:539/2013-03-30

Next page

Advanced export

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

CSV options:

CREATE TABLE h2h_record (
            h2h_id INTEGER NOT NULL,
            team_a_id INTEGER NOT NULL,
            team_b_id INTEGER NOT NULL,
            date DATE NOT NULL,
            total_matches INTEGER NOT NULL,
            wins_a INTEGER NOT NULL,
            wins_b INTEGER NOT NULL,
            draws INTEGER NOT NULL,
            goals_a INTEGER NOT NULL,
            goals_b INTEGER NOT NULL,
            last_match_date DATE,
            last_result VARCHAR(1),
            last_match_id INTEGER,
            competition_id INTEGER,
            created_at DATETIME NOT NULL,
            updated_at DATETIME NOT NULL,
            created_by_run_id INTEGER,
            updated_by_run_id INTEGER,
            source_id INTEGER NOT NULL,
            source_raw_key VARCHAR(512),
            CONSTRAINT pk_h2h_record PRIMARY KEY (h2h_id),
            CONSTRAINT fk_h2h_record_team_a FOREIGN KEY(team_a_id) REFERENCES team (team_id),
            CONSTRAINT fk_h2h_record_team_b FOREIGN KEY(team_b_id) REFERENCES team (team_id),
            CONSTRAINT fk_h2h_record_source FOREIGN KEY(source_id) REFERENCES data_source (source_id),
            CONSTRAINT fk_h2h_record_match FOREIGN KEY(last_match_id) REFERENCES match (match_id),
            CONSTRAINT fk_h2h_record_competition FOREIGN KEY(competition_id) REFERENCES competition (competition_id)
        );
Powered by Datasette · Queries took 804.21ms