@relayfx/sdk 0.0.29 → 0.0.31
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.
- package/dist/index.js +23 -5
- package/dist/migrations/20260701002839_sour_cerebro/migration.sql +160 -0
- package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +1971 -0
- package/dist/migrations/20260701041134_acoustic_hulk/migration.sql +30 -0
- package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +2372 -0
- package/dist/migrations/20260701160543_condemned_stryfe/migration.sql +2 -0
- package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +2442 -0
- package/dist/migrations/20260701220315_heavy_gorgon/migration.sql +5 -0
- package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +2495 -0
- package/dist/migrations/20260701225444_polite_lord_hawal/migration.sql +24 -0
- package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +2821 -0
- package/dist/migrations/20260702030128_flaky_misty_knight/migration.sql +1 -0
- package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +2821 -0
- package/dist/migrations/20260705003847_nervous_banshee/migration.sql +11 -0
- package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +2954 -0
- package/dist/migrations/20260705012626_common_stryfe/migration.sql +31 -0
- package/dist/migrations/20260705012626_common_stryfe/snapshot.json +3378 -0
- package/dist/migrations/20260705015420_sweet_captain_marvel/migration.sql +10 -0
- package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +3485 -0
- package/dist/migrations/20260705023041_chunky_scalphunter/migration.sql +22 -0
- package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +3753 -0
- package/dist/migrations/20260705030344_short_patriot/migration.sql +11 -0
- package/dist/migrations/20260705030344_short_patriot/snapshot.json +3873 -0
- package/dist/migrations/20260705045546_heavy_ben_grimm/migration.sql +30 -0
- package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +4193 -0
- package/dist/migrations/20260706185931_regular_shadow_king/migration.sql +166 -0
- package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +4844 -0
- package/dist/migrations/20260706233300_equal_cyclops/migration.sql +3 -0
- package/dist/migrations/20260706233300_equal_cyclops/snapshot.json +4883 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +10 -9
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
CREATE TABLE "relay_schedules" (
|
|
2
|
+
"id" text PRIMARY KEY,
|
|
3
|
+
"kind" text NOT NULL,
|
|
4
|
+
"target_kind" text NOT NULL,
|
|
5
|
+
"address_id" text,
|
|
6
|
+
"wait_id" text,
|
|
7
|
+
"cron_expr" text,
|
|
8
|
+
"input_json" jsonb,
|
|
9
|
+
"state" text DEFAULT 'active' NOT NULL,
|
|
10
|
+
"next_run_at" timestamp with time zone NOT NULL,
|
|
11
|
+
"attempt" integer DEFAULT 0 NOT NULL,
|
|
12
|
+
"claim_owner" text,
|
|
13
|
+
"claim_expires_at" timestamp with time zone,
|
|
14
|
+
"last_error" text,
|
|
15
|
+
"idempotency_key" text,
|
|
16
|
+
"metadata_json" jsonb DEFAULT '{}' NOT NULL,
|
|
17
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
18
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
19
|
+
);
|
|
20
|
+
--> statement-breakpoint
|
|
21
|
+
CREATE INDEX "idx_relay_schedules_state_next_run" ON "relay_schedules" ("state","next_run_at");--> statement-breakpoint
|
|
22
|
+
CREATE INDEX "idx_relay_schedules_claim_expires" ON "relay_schedules" ("claim_expires_at");--> statement-breakpoint
|
|
23
|
+
CREATE INDEX "idx_relay_schedules_wait" ON "relay_schedules" ("wait_id");--> statement-breakpoint
|
|
24
|
+
CREATE UNIQUE INDEX "uq_relay_schedules_idempotency" ON "relay_schedules" ("idempotency_key");
|