fix: register inventory export jobs schema
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 01:25:20 -04:00
parent 7c4885cf65
commit ad8f675f5e
@@ -69,6 +69,27 @@ export const sellerSettings = pgTable("seller_settings", {
...timestamps, ...timestamps,
}); });
export const inventoryExportJobs = pgTable(
"inventory_export_jobs",
{
id: uuid("id").defaultRandom().primaryKey(),
sellerId: uuid("seller_id")
.notNull()
.references(() => sellers.id, { onDelete: "cascade" }),
format: text("format").notNull(),
status: text("status").default("PENDING").notNull(),
output: jsonb("output"),
error: text("error"),
...timestamps,
},
(table) => [
index("inventory_export_jobs_status_created_at_index").on(
table.status,
table.createdAt,
),
],
);
export const sessions = pgTable( export const sessions = pgTable(
"sessions", "sessions",
{ {