stock.geolock.fr/apps/api/dist/db/schema/amazonPollLog.js
2026-02-24 16:10:30 +00:00

11 lines
588 B
JavaScript

import { integer, pgTable, text, timestamp, uuid } from 'drizzle-orm/pg-core';
export const amazonPollLog = pgTable('amazon_poll_log', {
id: uuid('id').primaryKey().defaultRandom(),
startedAt: timestamp('started_at', { withTimezone: true }).notNull().defaultNow(),
finishedAt: timestamp('finished_at', { withTimezone: true }),
ordersFound: integer('orders_found').notNull().default(0),
ordersImported: integer('orders_imported').notNull().default(0),
error: text('error'),
createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
});