First increment of the importer (docs/superpowers/specs/2026-06-01-bulk-import-design.md): the three port-scoped tables, no changes to entity tables. - import_batches — one row per run: entity_type, filename, storage_key, status, conflict_policy, mapping_json, live counts, created_by, timestamps. - import_batch_rows — per-row action ledger (inserted/updated/skipped/errored) with entity_id + error; partial index on inserted rows powers Undo. - import_mappings — saved column mappings, unique per (port, entity, name). Migration 0090 applied via psql; schema re-exported from the index. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
91 lines
2.0 KiB
TypeScript
91 lines
2.0 KiB
TypeScript
// Ports
|
|
export * from './ports';
|
|
|
|
// Users & Auth
|
|
export * from './users';
|
|
|
|
// Clients
|
|
export * from './clients';
|
|
|
|
// Companies
|
|
export * from './companies';
|
|
|
|
// Yachts
|
|
export * from './yachts';
|
|
|
|
// Interests
|
|
export * from './interests';
|
|
|
|
// Berths
|
|
export * from './berths';
|
|
|
|
// Tenancies (formerly berth_reservations)
|
|
export * from './tenancies';
|
|
|
|
// Documents & Files
|
|
export * from './documents';
|
|
|
|
// Brochures + send-outs (Phase 7)
|
|
export * from './brochures';
|
|
|
|
// Financial
|
|
export * from './financial';
|
|
|
|
// Email
|
|
export * from './email';
|
|
|
|
// Email bounces (DSN poller storage)
|
|
export * from './email-bounces';
|
|
|
|
// Portal (client-portal auth)
|
|
export * from './portal';
|
|
|
|
// CRM admin invites (better-auth realm)
|
|
export * from './crm-invites';
|
|
|
|
// Residential (parallel domain - separate clients & interests for the
|
|
// external residential team)
|
|
export * from './residential';
|
|
|
|
// Operations
|
|
export * from './operations';
|
|
|
|
// System
|
|
export * from './system';
|
|
|
|
// Insights (Phase B): alerts, analytics_snapshots
|
|
export * from './insights';
|
|
|
|
// AI usage ledger (Phase 3b)
|
|
export * from './ai-usage';
|
|
|
|
// GDPR export tracking (Phase 3d)
|
|
export * from './gdpr';
|
|
|
|
// Migration ledger (one-shot scripts - NocoDB import etc.)
|
|
export * from './migration';
|
|
|
|
// Bulk CSV/XLSX importer (batches, per-row ledger, saved mappings)
|
|
export * from './imports';
|
|
|
|
// Website submissions (dual-write capture from the marketing site)
|
|
export * from './website-submissions';
|
|
|
|
// Pre-EOI supplemental form tokens
|
|
export * from './supplemental-forms';
|
|
|
|
// Pipeline refactor - qualification criteria, payment records
|
|
export * from './pipeline';
|
|
|
|
// Saved PDF-report templates (`/api/v1/reports/templates`).
|
|
export * from './reports';
|
|
|
|
// Relations (must come last - references all tables)
|
|
export * from './relations';
|
|
export * from './tracked-links';
|
|
|
|
// Field-level override history (supplemental-info submissions, future
|
|
// form-template binding). Renders the "Field history" panel on the
|
|
// Interest + Client detail pages.
|
|
export * from './interest-field-history';
|