feat: add asynchronous inventory exports
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 01:25:11 -04:00
parent abb0b64217
commit 7c4885cf65
16 changed files with 269 additions and 1 deletions
@@ -0,0 +1,13 @@
CREATE TABLE "inventory_export_jobs" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid(),
"seller_id" uuid NOT NULL REFERENCES "sellers"("id") ON DELETE CASCADE,
"format" text NOT NULL,
"status" text DEFAULT 'PENDING' NOT NULL,
"output" jsonb,
"error" text,
"created_at" timestamptz DEFAULT now() NOT NULL,
"updated_at" timestamptz DEFAULT now() NOT NULL
);
CREATE INDEX "inventory_export_jobs_status_created_at_index"
ON "inventory_export_jobs" ("status", "created_at");
+7
View File
@@ -169,6 +169,13 @@
"when": 1790582400000,
"tag": "0023_seller_settings",
"breakpoints": true
},
{
"idx": 24,
"version": "7",
"when": 1790668800000,
"tag": "0024_inventory_export_jobs",
"breakpoints": true
}
]
}