+/- table definition

Query

CREATE TABLE `matches`  (
  `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
  `matchday_id` integer NOT NULL,
  `external_id` integer NOT NULL,
  `home_team` text NOT NULL,
  `away_team` text NOT NULL,
  `home_team_id` integer,
  `away_team_id` integer,
  `kickoff_at` text NOT NULL,
  `status` text DEFAULT 'scheduled' NOT NULL,
  `home_score` integer,
  `away_score` integer,
  `sofascore_event_id` integer,
  FOREIGN KEY (`matchday_id`) REFERENCES `matchdays`(`id`) ON UPDATE no action ON DELETE no action
)
Use Shift + Up/Down to navigate recently-executed queries