workplane 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,13 @@
8
8
  "when": 1780195148702,
9
9
  "tag": "0000_majestic_norman_osborn",
10
10
  "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "7",
15
+ "when": 1783143974356,
16
+ "tag": "0001_loud_otto_octavius",
17
+ "breakpoints": true
11
18
  }
12
19
  ]
13
20
  }
@@ -0,0 +1,45 @@
1
+ CREATE TABLE `workplan_runs` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `schedule_id` text,
4
+ `plan_id` text NOT NULL,
5
+ `plan_name` text NOT NULL,
6
+ `status` text DEFAULT 'running' NOT NULL,
7
+ `idempotency_key` text,
8
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
9
+ `ended_at` text,
10
+ `error` text,
11
+ FOREIGN KEY (`schedule_id`) REFERENCES `workplan_schedules`(`id`) ON UPDATE no action ON DELETE no action
12
+ );
13
+ --> statement-breakpoint
14
+ CREATE INDEX `idx_workplan_runs_schedule_id` ON `workplan_runs` (`schedule_id`);--> statement-breakpoint
15
+ CREATE UNIQUE INDEX `idx_workplan_runs_idempotency` ON `workplan_runs` (`idempotency_key`);--> statement-breakpoint
16
+ CREATE TABLE `workplan_schedules` (
17
+ `id` text PRIMARY KEY NOT NULL,
18
+ `plan_id` text NOT NULL,
19
+ `name` text NOT NULL,
20
+ `cron_expression` text NOT NULL,
21
+ `timezone` text NOT NULL,
22
+ `inputs` text DEFAULT '{}' NOT NULL,
23
+ `enabled` integer DEFAULT true NOT NULL,
24
+ `last_run_at` text,
25
+ `next_run_at` text,
26
+ `created_by` text,
27
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
28
+ `updated_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL
29
+ );
30
+ --> statement-breakpoint
31
+ CREATE INDEX `idx_workplan_schedules_due` ON `workplan_schedules` (`next_run_at`);--> statement-breakpoint
32
+ CREATE TABLE `workplan_step_results` (
33
+ `id` text PRIMARY KEY NOT NULL,
34
+ `workplan_run_id` text NOT NULL,
35
+ `step_id` text NOT NULL,
36
+ `step_name` text NOT NULL,
37
+ `output` text,
38
+ `exit_code` integer,
39
+ `duration_ms` integer,
40
+ `metadata` text,
41
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
42
+ FOREIGN KEY (`workplan_run_id`) REFERENCES `workplan_runs`(`id`) ON UPDATE no action ON DELETE no action
43
+ );
44
+ --> statement-breakpoint
45
+ CREATE INDEX `idx_workplan_step_results_run_id` ON `workplan_step_results` (`workplan_run_id`);