+/- table definition

Query

CREATE TABLE `drafts`  (
  `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
  `matchday_id` integer NOT NULL,
  `status` text DEFAULT 'pending' NOT NULL,
  `current_round` integer DEFAULT 1 NOT NULL,
  `opened_at` text,
  `closed_at` text,
  FOREIGN KEY (`matchday_id`) REFERENCES `matchdays`(`id`) ON UPDATE no action ON DELETE no action
)
Use Shift + Up/Down to navigate recently-executed queries