This commit is contained in:
@@ -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",
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user