This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / modules / sync / infrastructure / repositories / schema / syncStatus.sql.ts
602 B 13 lines
1import { pgTable, text, timestamp, integer, uuid } from 'drizzle-orm/pg-core'; 2 3export const syncStatuses = pgTable('sync_statuses', { 4 id: uuid('id').primaryKey().defaultRandom(), 5 curatorId: text('curator_id').notNull().unique(), 6 syncState: text('sync_state').notNull(), 7 lastSyncedAt: timestamp('last_synced_at'), 8 lastSyncAttemptAt: timestamp('last_sync_attempt_at'), 9 syncErrorMessage: text('sync_error_message'), 10 recordsProcessed: integer('records_processed'), 11 createdAt: timestamp('created_at').notNull().defaultNow(), 12 updatedAt: timestamp('updated_at').notNull().defaultNow(), 13});